conf: make sure debug_handle is initialised
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Nov 2015 11:59:26 +0000 (12:59 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Nov 2015 14:26:30 +0000 (15:26 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/cfgparser/olsrd_conf.c

index 32104dd..1f46ccc 100644 (file)
@@ -100,7 +100,7 @@ const char *OLSR_IF_MODE[] = {
 int current_line;
 
 /* Global stuff externed in defs.h */
-FILE *debug_handle;                    /* Where to send debug(defaults to stdout) */
+FILE *debug_handle = NULL;             /* Where to send debug(defaults to stdout) */
 struct olsrd_config *olsr_cnf = NULL;  /* The global configuration */
 
 #ifdef MAKEBIN