gobject/gtype.h: Fix _G_TYPE_CVH macro. Fixes #597194

If __val doesn't exist, we shouldn't do any other checks.
This commit is contained in:
Edward Hervey 2009-10-03 12:37:36 +02:00
parent 1937765f9f
commit 68b1ca0443

View File

@ -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; \ GValue *__val = (GValue*) vl; GType __t = gt; gboolean __r; \
if (!__val) \ if (!__val) \
__r = FALSE; \ __r = FALSE; \
if (__val->g_type == __t) \ else if (__val->g_type == __t) \
__r = TRUE; \ __r = TRUE; \
else \ else \
__r = g_type_check_value_holds (__val, __t); \ __r = g_type_check_value_holds (__val, __t); \