summaryrefslogtreecommitdiff
path: root/libnm-glib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-01-26 12:00:14 +0100
committerThomas Haller <thaller@redhat.com>2016-01-26 12:04:08 +0100
commite0601d501a09d2ea24c7d9d966056cb8042a49b3 (patch)
treef625b8870316aef944c58b87f74212ef5d9a0448 /libnm-glib
parent96b11af92d6dcffc4ecc97503626d6dd525b8c92 (diff)
libnm-glib: fix crash due to uninitalized pointer in get_permissions_reply()
If the D-Bus call failed with error, @permissions would stay uninitialized.
Diffstat (limited to 'libnm-glib')
-rw-r--r--libnm-glib/nm-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c
index 9d1f90704..468b06d2d 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,