diff options
Diffstat (limited to 'src/modules.c')
-rw-r--r-- | src/modules.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules.c b/src/modules.c index fede2de3c..0adcff9fe 100644 --- a/src/modules.c +++ b/src/modules.c @@ -546,6 +546,10 @@ Command *createCommand(const char *name, int (*func) (User * u), int help_reg, int help_oper, int help_admin, int help_root) { + if (!name || !*name) { + return NULL; + } + Command *c; if ((c = malloc(sizeof(Command))) == NULL) { fatal("Out of memory!"); |