]> arthur.barton.de Git - ngircd-alex.git/commitdiff
return false instead of NULL in error path
authorFlorian Westphal <fw@strlen.de>
Mon, 29 Jan 2007 21:13:26 +0000 (21:13 +0000)
committerFlorian Westphal <fw@strlen.de>
Mon, 29 Jan 2007 21:13:26 +0000 (21:13 +0000)
src/ngircd/lists.c

index 4f9a8855e043510df2c10a939ca115ef6743e6da..6a70d088db5fcb40c05c57597c02ad41299a76bb 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
 
 #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>
 
 #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!" );
        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 ));
        }
 
        strlcpy( newelem->mask, Mask, sizeof( newelem->mask ));