From 68b1ca04433846b68141a72029ed67ae117a7e94 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 3 Oct 2009 12:37:36 +0200 Subject: [PATCH] gobject/gtype.h: Fix _G_TYPE_CVH macro. Fixes #597194 If __val doesn't exist, we shouldn't do any other checks. --- gobject/gtype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gtype.h b/gobject/gtype.h index 7920ec271..860b51821 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -1497,7 +1497,7 @@ G_GNUC_INTERNAL void g_signal_init (void); /* sync with gsignal.c * GValue *__val = (GValue*) vl; GType __t = gt; gboolean __r; \ if (!__val) \ __r = FALSE; \ - if (__val->g_type == __t) \ + else if (__val->g_type == __t) \ __r = TRUE; \ else \ __r = g_type_check_value_holds (__val, __t); \