From: Wilfried Goesgens Date: Tue, 15 Jan 2013 21:01:10 +0000 (+0100) Subject: When loading the netmap always create a hash. else we will always fail to add new... X-Git-Tag: v8.20~150 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4632e362fbc73c9abce30f0bcf4d0023144937a8 When loading the netmap always create a hash. else we will always fail to add new values into it. --- diff --git a/citadel/netconfig.c b/citadel/netconfig.c index e5a5cb0b2..3aac29463 100644 --- a/citadel/netconfig.c +++ b/citadel/netconfig.c @@ -921,14 +921,14 @@ HashList* CtdlReadNetworkMap(void) HashList *Hash; CtdlNetMap *TheNetMap; + Hash = NewHash(1, NULL); Cfg = CtdlGetSysConfig(IGNETMAP); if ((Cfg == NULL) || IsEmptyStr(Cfg)) { if (Cfg != NULL) free(Cfg); - return NULL; + return Hash; } - Hash = NewHash(1, NULL); Buf = NewStrBufPlain(Cfg, -1); free(Cfg); LineBuf = NewStrBufPlain(NULL, StrLength(Buf));