Make code more readable.
authorPeng Huang <shawn.p.huang@gmail.com>
Tue, 19 May 2009 03:30:30 +0000 (11:30 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 19 May 2009 03:30:30 +0000 (11:30 +0800)
bus/inputcontext.c

index 8c9805d..202f309 100644 (file)
@@ -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,