diff options
Diffstat (limited to 'src/conffile.c')
-rw-r--r-- | src/conffile.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conffile.c b/src/conffile.c index 955956a..e55ff30 100644 --- a/src/conffile.c +++ b/src/conffile.c @@ -158,7 +158,12 @@ int config_parse_file(const char *section, struct config_keyset *kset) } if (!found) { - err = -ERRSECTION; + if (kset->num_ces == 0) { + /* If there are no options, then no section isnt an error. */ + err = 0; + } else { + err = -ERRSECTION; + } goto cpf_error; } |