From f9022b8fb38ccede798fac60c5c7c6df0d001fdf Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 30 Jan 2014 16:22:27 +0100 Subject: [PATCH] core: fix recently introduced crash in nm-manager find_master() does not (always) set the output parameters. Initialize paramter to NULL before calling find_master(). Just introduced recently with commit 8123cd2410d26281b3fff85a02d42dd03422119f. Signed-off-by: Thomas Haller --- src/nm-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-manager.c b/src/nm-manager.c index be6dda0ab9..ef862921ad 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -1938,7 +1938,7 @@ add_device (NMManager *self, NMDevice *device, gboolean generate_con) subject = nm_auth_subject_new_internal (); active = _new_active_connection (self, connection, NULL, device, subject, &error); if (active) { - NMActiveConnection *master_ac; + NMActiveConnection *master_ac = NULL; /* If the device is a slave or VLAN, find the master ActiveConnection */ if (find_master (self, connection, device, NULL, NULL, &master_ac, NULL) && master_ac)