diff options
Diffstat (limited to 'src/common/chanopt.c')
-rw-r--r-- | src/common/chanopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/chanopt.c b/src/common/chanopt.c index 92466ce9..0a286da5 100644 --- a/src/common/chanopt.c +++ b/src/common/chanopt.c @@ -208,7 +208,7 @@ chanopt_find (char *network, char *channel, gboolean add_new) return NULL; /* allocate a new one */ - co = g_malloc0 (sizeof (chanopt_in_memory)); + co = g_new0 (chanopt_in_memory, 1); co->channel = g_strdup (channel); co->network = g_strdup (network); |