aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libindicate/indicator.c2
-rw-r--r--libindicate/server.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/libindicate/indicator.c b/libindicate/indicator.c
index 55964df..18cdc4a 100644
--- a/libindicate/indicator.c
+++ b/libindicate/indicator.c
@@ -251,6 +251,8 @@ indicate_indicator_set_server (IndicateIndicator * indicator, IndicateServer * s
if (server != NULL) {
indicate_server_add_indicator (server, indicator);
}
+
+ return;
}
diff --git a/libindicate/server.c b/libindicate/server.c
index a3d3be8..e1e3479 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -945,11 +945,11 @@ get_indicator_list (IndicateServer * server, GArray ** indicators, GError ** err
GSList * iter;
int i;
- for (iter = priv->indicators, i = 0; iter != NULL; iter = iter->next, i++) {
+ for (iter = priv->indicators, i = 0; iter != NULL; iter = iter->next) {
IndicateIndicator * indicator = INDICATE_INDICATOR(iter->data);
if (indicate_indicator_is_visible(indicator)) {
guint id = indicate_indicator_get_id(indicator);
- g_array_insert_val(*indicators, i, id);
+ g_array_insert_val(*indicators, i++, id);
}
}