diff options
-rw-r--r-- | src/unix_signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix_signal.c b/src/unix_signal.c index 17c8725..e2d9581 100644 --- a/src/unix_signal.c +++ b/src/unix_signal.c @@ -146,9 +146,9 @@ guint unix_signal_add_full(gint priority, gint signum, GSourceFunc function, gpointer data, GDestroyNotify notify) { - g_return_val_if_fail(function != NULL, 0); - GSource *source = unix_signal_source_new(signum); guint id; + GSource *source = unix_signal_source_new(signum); + g_return_val_if_fail(function != NULL, 0); if (priority != G_PRIORITY_DEFAULT) g_source_set_priority (source, priority); |