core: fix crash on an activation error

Reported by Oleksii Shevchuk (alxchk) on IRC
This commit is contained in:
Jiří Klimeš 2013-11-01 10:23:09 +01:00
parent 732012cc8c
commit 6457e2c367

View file

@ -3293,7 +3293,7 @@ impl_manager_add_and_activate_connection (NMManager *self,
NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
NMConnection *connection = NULL;
GSList *all_connections = NULL;
NMActiveConnection *active;
NMActiveConnection *active = NULL;
NMAuthSubject *subject = NULL;
GError *error = NULL;
NMDevice *device = NULL;