X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fmotd.c;h=bdad75eeb5bb5c20d7d3679b0dcc36461b2c4341;hb=refs%2Fheads%2Fupstream-ssl;hp=dc92c97e260d897a6c1a2b79d6e9a0b33956e9e8;hpb=fc21303989a07d6091ef684150db29c49f682614;p=ircu2.10.12-pk.git diff --git a/ircd/motd.c b/ircd/motd.c index dc92c97..bdad75e 100644 --- a/ircd/motd.c +++ b/ircd/motd.c @@ -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; @@ -445,10 +447,10 @@ motd_memory_count(struct Client *cptr) struct Motd *ptr; struct MotdCache *cache; unsigned int mt = 0, /* motd count */ - mtm = 0, /* memory consumed by motd */ mtc = 0, /* motd cache count */ - mtcm = 0, /* memory consumed by motd cache */ mtf = 0; /* motd free list count */ + size_t mtm = 0, /* memory consumed by motd */ + mtcm = 0; /* memory consumed by motd cache */ if (MotdList.local) { mt++;