diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-03-28 22:21:35 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-03-28 22:21:35 -0500 |
commit | 8401862ae66ac619f517cd4bb37a07c6847f625c (patch) | |
tree | b012cdf21451f86b4d10ec8f8c2e17371516c407 /src | |
parent | 7e19d433643bd94cd485a1b6dbf7bf042adba48e (diff) | |
download | ayatana-indicator-session-8401862ae66ac619f517cd4bb37a07c6847f625c.tar.gz ayatana-indicator-session-8401862ae66ac619f517cd4bb37a07c6847f625c.tar.bz2 ayatana-indicator-session-8401862ae66ac619f517cd4bb37a07c6847f625c.zip |
silence compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/service.c b/src/service.c index a153306..b3b0641 100644 --- a/src/service.c +++ b/src/service.c @@ -250,15 +250,15 @@ on_user_changed (IndicatorSessionUsers * backend_users G_GNUC_UNUSED, static void maybe_add_users (IndicatorSessionService * self) { - if (!show_user_list (self)) - return; - - GList * uids, * l; + if (show_user_list (self)) + { + GList * uids, * l; - uids = indicator_session_users_get_uids (self->priv->backend_users); - for (l=uids; l!=NULL; l=l->next) - add_user (self, GPOINTER_TO_UINT(l->data)); - g_list_free (uids); + uids = indicator_session_users_get_uids (self->priv->backend_users); + for (l=uids; l!=NULL; l=l->next) + add_user (self, GPOINTER_TO_UINT(l->data)); + g_list_free (uids); + } } |