aboutsummaryrefslogtreecommitdiff
path: root/src/app-indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-03 17:09:57 -0500
committerTed Gould <ted@gould.cx>2010-08-03 17:09:57 -0500
commitf72116833d67c954ec69dfe8aced4e7e26c36c23 (patch)
treed286b599b98e30a700f2536b182497bd1a35876d /src/app-indicator.c
parenta2e95f155e746d390a8e6b5253d527a655df96a2 (diff)
downloadlibayatana-appindicator-f72116833d67c954ec69dfe8aced4e7e26c36c23.tar.gz
libayatana-appindicator-f72116833d67c954ec69dfe8aced4e7e26c36c23.tar.bz2
libayatana-appindicator-f72116833d67c954ec69dfe8aced4e7e26c36c23.zip
Turning null strings into NULLs
Diffstat (limited to 'src/app-indicator.c')
-rw-r--r--src/app-indicator.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 0da0b01..b3fa3e5 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -651,6 +651,11 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu
signal_label_change(APP_INDICATOR(object));
}
+ if (priv->label != NULL && priv->label[0] == '\0') {
+ g_free(priv->label);
+ priv->label = NULL;
+ }
+
if (oldlabel != NULL) {
g_free(oldlabel);
}
@@ -664,6 +669,11 @@ app_indicator_set_property (GObject * object, guint prop_id, const GValue * valu
signal_label_change(APP_INDICATOR(object));
}
+ if (priv->label_guide != NULL && priv->label_guide[0] == '\0') {
+ g_free(priv->label_guide);
+ priv->label_guide = NULL;
+ }
+
if (oldguide != NULL) {
g_free(oldguide);
}