Fix missing * in option_parser.c

This commit is contained in:
John Chen 2017-01-30 11:36:15 +08:00
parent 17e2929ee7
commit 656846900a

View File

@ -262,12 +262,10 @@ int load_ini_file(FILE * fp)
printf("Missing '\"'\n");
continue;
}
closing_quote = '\0';
} else {
char *comment = strpbrk(value, "#;");
if (comment)
comment = '\0';
*comment = '\0';
}
value = g_strstrip(value);