diff -r 1a7853a4257e -r 5dee29c7c530 src/server/config/initconf.c --- a/src/server/config/initconf.c Thu Feb 23 13:10:04 2012 +0100 +++ b/src/server/config/initconf.c Sat Feb 25 12:43:26 2012 +0100 @@ -37,10 +37,11 @@ if(in == NULL) { return NULL; } - + InitConfig *conf = malloc(sizeof(InitConfig)); conf->parser.parse = initconf_parse; conf->file = file; + conf->directives = NULL; int r = cfg_parse_basic_file((ConfigParser*)conf, in); if(r != 0) { @@ -64,7 +65,7 @@ int initconf_parse(void *p, ConfigLine *begin, ConfigLine *end, sstr_t line) { InitConfig *conf = p; - + // parse directive ConfigDirective *d = cfg_parse_directive(line, conf->parser.mp); if(d == NULL) { @@ -76,7 +77,7 @@ if(d->type_num == 6) { conf->directives = ucx_dlist_append(conf->directives, d); } else { - fprintf(stderr, "Warning: Non Init directive in init.conf"); + fprintf(stderr, "Warning: Non Init directive in init.conf\n"); } return 0;