From 1115ab16db94f425a7fdb8baf44d2d35b66447df Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Tue, 12 May 2015 17:33:08 +0200 Subject: [PATCH] Return NULL in case of unset program_config_file --- src/cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfg.c b/src/cfg.c index 90c2550..acc76d2 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -545,7 +545,7 @@ cfg_get_program_config_type(void) const char * cfg_get_program_config_file(void) { - return (cfg.program.config_file); + return (cfg.program.config_file[0] ? cfg.program.config_file : NULL); } int