summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glibext/signal.c b/src/glibext/signal.c
index 3d7eaa7..33290fb 100644
--- a/src/glibext/signal.c
+++ b/src/glibext/signal.c
@@ -176,10 +176,11 @@ gulong _g_signal_connect_to_main(gpointer instance, const gchar *signal, GCallba
signal_id = g_signal_lookup(signal, G_TYPE_FROM_INSTANCE(instance));
g_signal_query(signal_id, &query);
+ assert(query.signal_id != 0);
/* Allocation adaptée */
- info = (gsignal_wrapper_info *)calloc(1, sizeof(gsignal_wrapper_info) + sizeof(GValue) * (query.n_params + 1));
+ info = calloc(1, sizeof(gsignal_wrapper_info) + sizeof(GValue) * (query.n_params + 1));
info->instance = instance;