conf: support space in filename

This commit is contained in:
Nick Peng
2022-12-14 21:05:20 +08:00
parent 90e0be932e
commit f8f1a66abe
2 changed files with 5 additions and 5 deletions

View File

@@ -219,8 +219,8 @@ static int conf_parse_args(char *key, char *value, int *argc, char **argv)
continue;
}
if (*ptr == '"' && start == NULL) {
sep_flag = '"';
if ((*ptr == '"' || *ptr == '\'') && start == NULL) {
sep_flag = *ptr;
start = NULL;
}