aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-15 21:40:46 -0600
committerTed Gould <ted@canonical.com>2009-02-15 21:40:46 -0600
commit0e0780f55ad2814ca7d96446fa0489e259b87e13 (patch)
treec4dbed9233e74bcd9dcf1a5192c6dae5662a4859 /libindicate
parentebe1c53d131fbfbd5b2f8f1334a37f071574550b (diff)
downloadlibayatana-indicator-0e0780f55ad2814ca7d96446fa0489e259b87e13.tar.gz
libayatana-indicator-0e0780f55ad2814ca7d96446fa0489e259b87e13.tar.bz2
libayatana-indicator-0e0780f55ad2814ca7d96446fa0489e259b87e13.zip
Adding a check for NULL string in the icon parsing code. This will
stop a bunch of warnings coming from everything else.
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/listener.c5
1 files changed, 5 insertions, 0 deletions
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);