From f3df51420ab7bce6ec5a3a35791de0d2015d728f Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 4 Feb 2016 16:05:56 +0100 Subject: [PATCH] Code cleanup --- src/damon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/damon.c b/src/damon.c index 8590475..910cd43 100644 --- a/src/damon.c +++ b/src/damon.c @@ -376,14 +376,14 @@ static int _init_config(DaMon * damon, char const * filename) { error_print(PROGNAME); config_delete(config); - return 1; + return -1; } if((damon->prefix = config_get(config, "", "prefix")) == NULL) damon->prefix = "."; if((damon->prefix = strdup(damon->prefix)) == NULL) { config_delete(config); - return 1; + return -1; } if((p = config_get(config, "", "refresh")) != NULL) {