mirror of
https://github.com/anope/anope.git
synced 2026-06-29 02:06:37 +02:00
Properly initialized new objects when needed so they don't contain garbage data.
Also, converted line endings in os_ignore_db from CR+LF to LF. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1784 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -229,6 +229,7 @@ Command *createCommand(const char *name, int (*func) (User * u),
|
||||
c->help_param2 = NULL;
|
||||
c->help_param3 = NULL;
|
||||
c->help_param4 = NULL;
|
||||
c->core = 0;
|
||||
c->next = NULL;
|
||||
c->mod_name = NULL;
|
||||
c->service = NULL;
|
||||
@@ -554,6 +555,7 @@ Message *createMessage(const char *name,
|
||||
}
|
||||
m->name = sstrdup(name);
|
||||
m->func = func;
|
||||
m->core = 0;
|
||||
m->next = NULL;
|
||||
return m;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user