summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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!");
}