diff options
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/main.c b/src/core/main.c index 4d21dd97a3..921476a042 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -704,7 +704,7 @@ static int parse_config_file(void) { { NULL, NULL, NULL, 0, NULL } }; - FILE *f; + FILE _cleanup_fclose_ *f; const char *fn; int r; @@ -722,8 +722,6 @@ static int parse_config_file(void) { if (r < 0) log_warning("Failed to parse configuration file: %s", strerror(-r)); - fclose(f); - return 0; } |