From 0e0780f55ad2814ca7d96446fa0489e259b87e13 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sun, 15 Feb 2009 21:40:46 -0600 Subject: Adding a check for NULL string in the icon parsing code. This will stop a bunch of warnings coming from everything else. --- libindicate/listener.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libindicate/listener.c b/libindicate/listener.c index 3cc9111..d8926f1 100644 --- a/libindicate/listener.c +++ b/libindicate/listener.c @@ -688,6 +688,11 @@ get_property_cb (DBusGProxy *proxy, char * OUT_value, GError *error, gpointer us case PROPERTY_TYPE_ICON: { indicate_listener_get_property_icon_cb cb = (indicate_listener_get_property_icon_cb)get_property_data->cb; + /* There is no icon */ + if (OUT_value == NULL || OUT_value[0] == '\0') { + break; + } + gsize length = 0; guchar * icondata = g_base64_decode(OUT_value, &length); -- cgit v1.2.3