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

If the D-Bus call failed with error, @permissions would stay uninitialized.
This commit is contained in:
Thomas Haller 2016-01-26 12:00:14 +01:00
parent 96b11af92d
commit e0601d501a

View file

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