1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 05:16:38 +02:00

BUILD : 1.7.5 (384) BUGS : N/A NOTES : Moved veriable declaration to the top of function - btw, are all these null checks needed? createCommand should never be passed NULL values, its a wasted if imho... *shrug*

git-svn-id: svn://svn.anope.org/anope/trunk@384 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@253 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-10-10 10:31:24 +00:00
parent 20d3109377
commit 3f487b80d9
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -546,11 +546,11 @@ Command *createCommand(const char *name, int (*func) (User * u),
int help_reg, int help_oper, int help_admin,
int help_root)
{
Command *c;
if (!name || !*name) {
return NULL;
}
Command *c;
if ((c = malloc(sizeof(Command))) == NULL) {
fatal("Out of memory!");
}
+6 -1
View File
@@ -8,10 +8,15 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="5"
VERSION_BUILD="383"
VERSION_BUILD="384"
# $Log$
#
# BUILD : 1.7.5 (384)
# BUGS : N/A
# NOTES : Moved veriable declaration to the top of function - btw, are all these null checks needed? createCommand should never be passed NULL values, its a wasted if imho... *shrug*
#
#
# BUILD : 1.7.5 (383)
# BUGS : N/A
# NOTES : glist fix - DrStein, improved on DrStein typo fix to init.c - TSL, tons of NULL crash checks - TSL