libnm-glib: fix crash due to uninitalized pointer in get_permissions_reply()

If the D-Bus call failed with error, @permissions would stay uninitialized.

Fixes: f2399a6976
Fixes: 808f012603

(cherry picked from commit e0601d501a)
This commit is contained in:
Thomas Haller 2016-01-26 12:00:14 +01:00
parent 808f012603
commit 1deae2a284

View file

@ -331,7 +331,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,