Small optimization

This commit is contained in:
twinaphex 2020-06-26 14:45:48 +02:00
parent 7027b094c1
commit b39ef98d2a

View File

@ -523,8 +523,8 @@ static config_file_t *config_file_new_internal(
continue; continue;
} }
if (*line if (
&& !string_is_empty(line) !string_is_empty(line)
&& parse_line(conf, list, line, cb)) && parse_line(conf, list, line, cb))
{ {
if (conf->entries) if (conf->entries)
@ -660,8 +660,8 @@ config_file_t *config_file_new_from_string(char *from_string,
list->next = NULL; list->next = NULL;
/* Parse current line */ /* Parse current line */
if (*line if (
&& !string_is_empty(line) !string_is_empty(line)
&& parse_line(conf, list, line, NULL)) && parse_line(conf, list, line, NULL))
{ {
if (conf->entries) if (conf->entries)