summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules.c2
-rw-r--r--version.log7
2 files changed, 7 insertions, 2 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!");
}
diff --git a/version.log b/version.log
index 56d589e66..0779e74e8 100644
--- a/version.log
+++ b/version.log
@@ -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