]> jfr.im git - irc/quakenet/newserv.git/commitdiff
newsearch: reason function should return "" instead of NULL.
authorGunnar Beutner <redacted>
Wed, 7 Aug 2013 14:37:23 +0000 (16:37 +0200)
committerGunnar Beutner <redacted>
Wed, 7 Aug 2013 14:37:23 +0000 (16:37 +0200)
newsearch/ns-reason.c

index 82ca1303cae1d7a1f147943a1467a4748f5548c4..c0d6317b076687f0d218114a61d4408d2ea7a688 100644 (file)
@@ -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;
 }