summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-10 10:31:24 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-10 10:31:24 +0000
commit3f487b80d96df7e72d05d8d56b89273f89fb738c (patch)
tree1335b1c6b2c61386d831d6bd78014ca8348c8dc0 /src/modules.c
parent20d3109377483a6a06ff9d62774b39989bb1a8f4 (diff)
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
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.c b/src/modules.c
index 0adcff9fe..ad5da8034 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -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!");
}