Small optimization
This commit is contained in:
parent
7027b094c1
commit
b39ef98d2a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue