Dont need set "" to icon anymore.
authorPeng Huang <shawn.p.huang@gmail.com>
Tue, 13 Oct 2009 06:15:57 +0000 (14:15 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 13 Oct 2009 06:15:57 +0000 (14:15 +0800)
src/ibusproperty.c

index f220847c3b92ab089dc6e3b0779b71778106ddd5..c33fe37abfb98128191209379aea84ed6d041140 100644 (file)
@@ -315,8 +315,7 @@ ibus_property_set_icon (IBusProperty *prop,
     g_assert (IBUS_IS_PROPERTY (prop));
 
     g_free (prop->icon);
-    prop->icon = NULL;
-    prop->icon = g_strdup (icon != NULL ? icon : "");
+    prop->icon = g_strdup (icon);
 }
 
 void