Always initialize MOTD hostmask pointer.
[ircu2.10.12-pk.git] / ircd / motd.c
index dc92c97e260d897a6c1a2b79d6e9a0b33956e9e8..d0627e8f17bcc66ab891cdbd8b6dc541209a089f 100644 (file)
@@ -94,6 +94,8 @@ motd_create(const char *hostmask, const char *path, int maxcount)
 
   if (hostmask != NULL)
     DupString(tmp->hostmask, hostmask);
+  else
+    tmp->hostmask = NULL;
 
   DupString(tmp->path, path);
   tmp->maxcount = maxcount;