From affec926199d46d524c32cd144d13893078207fe Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Tue, 19 May 2009 11:30:30 +0800 Subject: [PATCH] Make code more readable. --- bus/inputcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/inputcontext.c b/bus/inputcontext.c index 8c9805d..202f309 100644 --- a/bus/inputcontext.c +++ b/bus/inputcontext.c @@ -1654,7 +1654,7 @@ bus_input_context_register_properties (BusInputContext *context, g_object_unref (priv->props); } - priv->props = (IBusPropList *) g_object_ref (props ? props : props_empty); + priv->props = (IBusPropList *) g_object_ref (props != NULL ? props : props_empty); if (priv->capabilities & IBUS_CAP_PROPERTY) { bus_input_context_send_signal (context, -- 2.7.4