diff options
author | Thomas Haller <thaller@redhat.com> | 2016-01-26 12:00:14 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-01-26 12:04:08 +0100 |
commit | e0601d501a09d2ea24c7d9d966056cb8042a49b3 (patch) | |
tree | f625b8870316aef944c58b87f74212ef5d9a0448 /libnm-glib | |
parent | 96b11af92d6dcffc4ecc97503626d6dd525b8c92 (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.c | 2 |
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, |