aboutsummaryrefslogtreecommitdiff
path: root/libindicate/server.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-11 23:07:38 -0500
committerTed Gould <ted@canonical.com>2009-04-11 23:07:38 -0500
commita09510f6cb416fed7e98ce7df61d74f56d7a1bff (patch)
tree1ba3f187c00d1dfe3c603c36e82aa551c3fe8c71 /libindicate/server.c
parentc1955c5ca3f460f0ac8fc7de84325345b60b8919 (diff)
downloadlibayatana-indicator-a09510f6cb416fed7e98ce7df61d74f56d7a1bff.tar.gz
libayatana-indicator-a09510f6cb416fed7e98ce7df61d74f56d7a1bff.tar.bz2
libayatana-indicator-a09510f6cb416fed7e98ce7df61d74f56d7a1bff.zip
Fixing some pedantic little bugs to try and figure out what's causing 359018
Diffstat (limited to 'libindicate/server.c')
-rw-r--r--libindicate/server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libindicate/server.c b/libindicate/server.c
index 9e33516..f2ebdd2 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -307,6 +307,9 @@ set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec)
g_return_if_fail(id == PROP_DESKTOP || id == PROP_TYPE);
gchar ** outstr;
+ gchar * tempstr = NULL;
+ outstr = &tempstr;
+
IndicateServerPrivate * priv = INDICATE_SERVER_GET_PRIVATE(obj);
switch (id) {
case PROP_DESKTOP:
@@ -331,7 +334,7 @@ get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec)
{
g_return_if_fail(id == PROP_DESKTOP || id == PROP_TYPE);
- gchar * outstr;
+ gchar * outstr = NULL;
IndicateServerPrivate * priv = INDICATE_SERVER_GET_PRIVATE(obj);
switch (id) {
case PROP_DESKTOP:
@@ -743,7 +746,7 @@ count_by_type (IndicateIndicator * indicator, count_by_t * cbt)
if (type == NULL && cbt->type == NULL) {
cbt->count++;
} else if (type == NULL || cbt->type == NULL) {
- } else if (!strcmp(type, cbt->type)) {
+ } else if (!g_strcmp0(type, cbt->type)) {
cbt->count++;
}
@@ -826,7 +829,7 @@ get_indicator_list_by_type (IndicateServer * server, gchar * type, GArray ** ind
if (type == NULL && itype == NULL) {
g_array_insert_val(*indicators, i++, id);
} else if (type == NULL || itype == NULL) {
- } else if (!strcmp(type, itype)) {
+ } else if (!g_strcmp0(type, itype)) {
g_array_insert_val(*indicators, i++, id);
}
}