From 6aeec6860d6a15b9d33a0ffbc80df95acbec0f24 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 20 Apr 2016 07:46:27 +0200 Subject: [PATCH] examples: fix crash in add-connection-libnm Reported-by: Ali Nematollahi (cherry picked from commit 76348adb8ea4f97497442d13c86f838332f035f0) --- examples/C/glib/add-connection-libnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/C/glib/add-connection-libnm.c b/examples/C/glib/add-connection-libnm.c index 75048bd8f1..9b323084d6 100644 --- a/examples/C/glib/add-connection-libnm.c +++ b/examples/C/glib/add-connection-libnm.c @@ -39,7 +39,7 @@ added_cb (GObject *client, { GMainLoop *loop = user_data; NMRemoteConnection *remote; - GError *error; + GError *error = NULL; /* NM responded to our request; either handle the resulting error or * print out the object path of the connection we just added.