Skip to content

Commit 73ecd12

Browse files
committed
Resync
1 parent c80eb2d commit 73ecd12

3 files changed

Lines changed: 257 additions & 256 deletions

File tree

file/config_file.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,11 @@ size_t config_file_add_reference(config_file_t *conf, char *path)
413413
/* It is expected that the conf has it's path already set */
414414
char short_path[NAME_MAX_LENGTH];
415415
if (!conf->references)
416-
conf->references = path_linked_list_new();
416+
{
417+
conf->references = (struct path_linked_list*)malloc(sizeof(*conf->references));
418+
conf->references->next = NULL;
419+
conf->references->path = NULL;
420+
}
417421
len = fill_pathname_abbreviated_or_relative(short_path, conf->path, path, sizeof(short_path));
418422
path_linked_list_add_path(conf->references, short_path);
419423
return len;

0 commit comments

Comments
 (0)