From: Gunnar Beutner Date: Wed, 7 Aug 2013 14:37:23 +0000 (+0200) Subject: newsearch: reason function should return "" instead of NULL. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/48ff8a51f30cad62cc2b5faedabd9b5ce220a25c newsearch: reason function should return "" instead of NULL. --- diff --git a/newsearch/ns-reason.c b/newsearch/ns-reason.c index 82ca1303..c0d6317b 100644 --- a/newsearch/ns-reason.c +++ b/newsearch/ns-reason.c @@ -31,7 +31,7 @@ void *reason_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) { whowas *ww = (whowas *)np->next; if (!ww->reason) - return (void *)0; + return (void *)""; return (void *)ww->reason->content; }