Description: Fix segfault in user applet when no users are available
Author: Raphaël Hertzog <hertzog@debian.org>
Origin: vendor
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=773673
Bug-Kali: https://bugs.kali.org/view.php?id=3709
Last-Update: 2017-02-16
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -1309,8 +1309,10 @@ users_loaded (ActUserManager     *manage
                 g_debug ("adding user %s\n", get_real_or_user_name (user));
                 user_added (d->um, user, d);
         }
-        show_user (list->data, d);
-        g_slist_free (list);
+        if (list) {
+                show_user (list->data, d);
+                g_slist_free (list);
+        }
 
         g_signal_connect (d->um, "user-added", G_CALLBACK (user_added), d);
         g_signal_connect (d->um, "user-removed", G_CALLBACK (user_removed), d);
