If usertypes argument is not specified, NULL is passed to g_strsplit().
It makes a segmentation fault.
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Change-Id: I56d35a0afe9afadb5cdb592c546ca88554fa4951
service = gum_user_service_create_sync (offline_mode);
if (!service) return;
- strv = g_strsplit (types, ",", -1);
+ if (types)
+ strv = g_strsplit (types, ",", -1);
+ else
+ strv = g_malloc0 (sizeof (gchar *));
+
users = gum_user_service_get_user_list_sync (service,
(const gchar *const *)strv);
g_strfreev (strv);