diff --git a/src/option_parser.c b/src/option_parser.c index f6c43f4..8bcaee2 100644 --- a/src/option_parser.c +++ b/src/option_parser.c @@ -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);