From e0601d501a09d2ea24c7d9d966056cb8042a49b3 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 26 Jan 2016 12:00:14 +0100 Subject: [PATCH] libnm-glib: fix crash due to uninitalized pointer in get_permissions_reply() If the D-Bus call failed with error, @permissions would stay uninitialized. --- libnm-glib/nm-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c index 9d1f90704b..468b06d2d0 100644 --- a/libnm-glib/nm-client.c +++ b/libnm-glib/nm-client.c @@ -336,7 +336,7 @@ get_permissions_reply (DBusGProxy *proxy, gpointer user_data) { NMClient *self = NM_CLIENT (user_data); - GHashTable *permissions; + GHashTable *permissions = NULL; GError *error = NULL; dbus_g_proxy_end_call (proxy, call, &error,