about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2007-01-29 21:13:26 +0000
committerFlorian Westphal <fw@strlen.de>2007-01-29 21:13:26 +0000
commitc93d089736bdcfac111199573d249e21b9d71186 (patch)
tree1630b4a00f1c776d0a47b99db520b1490654aa18
parent429f85b77a203bb367a2e5ed2244e7c200db0295 (diff)
downloadngircd-c93d089736bdcfac111199573d249e21b9d71186.tar.gz
ngircd-c93d089736bdcfac111199573d249e21b9d71186.zip
return false instead of NULL in error path
-rw-r--r--src/ngircd/lists.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c
index 4f9a8855..6a70d088 100644
--- a/src/ngircd/lists.c
+++ b/src/ngircd/lists.c
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: lists.c,v 1.20 2006/12/07 17:57:20 fw Exp $";
+static char UNUSED id[] = "$Id: lists.c,v 1.21 2007/01/29 21:13:26 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -80,7 +80,7 @@ Lists_Add(struct list_head *header, const char *Mask, bool OnlyOnce )
 	newelem = malloc(sizeof(struct list_elem));
 	if( ! newelem ) {
 		Log( LOG_EMERG, "Can't allocate memory for new Ban/Invite entry!" );
-		return NULL;
+		return false;
 	}
 
 	strlcpy( newelem->mask, Mask, sizeof( newelem->mask ));