diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/plugin.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c index 6edc9926..7d118b8b 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -624,10 +624,7 @@ hexchat_event_attrs_create (hexchat_plugin *ph) { hexchat_event_attrs *attrs; - attrs = malloc (sizeof (*attrs)); - - if (attrs == NULL) - return NULL; + attrs = g_malloc (sizeof (*attrs)); attrs->server_time_utc = (time_t) 0; |