]> jfr.im git - irc/quakenet/newserv.git/commitdiff
fix nicksearch (eq (<stringobject>) "") core(s)
authorPaul <redacted>
Sun, 27 Jan 2008 14:32:06 +0000 (14:32 +0000)
committerPaul <redacted>
Sun, 27 Jan 2008 14:32:06 +0000 (14:32 +0000)
newsearch/newsearch.c

index 226379ef17c1dd7ec82f67aa75e51d5095ce9ee4..4545cf23defc5acce488aaab4b8266e40d41f464 100644 (file)
@@ -539,7 +539,10 @@ struct searchNode *coerceNode(struct searchNode *thenode, int type) {
 
 /* Literals always return constant strings... */
 void *literal_exe(struct searchNode *thenode, void *theinput) {
-  return ((sstring *)thenode->localdata)->content;
+  if (thenode->localdata) 
+    return ((sstring *)thenode->localdata)->content;
+  else
+    return "";
 }
 
 void literal_free(struct searchNode *thenode) {