X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=config%2Futil.c;fp=config%2Futil.c;h=b98a79e30e04a4017bd33264e85b2c40e46bc3af;hp=138894ef49ea18545468de9b1021c58505d36454;hb=65512385c67686caa41208d6a1a9b71fb2f57639;hpb=d44655a5f52f765a5f5aa86cebed06abbe64a51b diff --git a/config/util.c b/config/util.c index 138894e..b98a79e 100644 --- a/config/util.c +++ b/config/util.c @@ -14,11 +14,11 @@ struct file *file_lookup(const char *name) { struct file *file; - const char *file_name = sym_expand_string_value(name); + char *file_name = sym_expand_string_value(name); for (file = file_list; file; file = file->next) { if (!strcmp(name, file->name)) { - free((void *)file_name); + free(file_name); return file; } }