From 76348adb8ea4f97497442d13c86f838332f035f0 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 20 Apr 2016 07:46:27 +0200 Subject: examples: fix crash in add-connection-libnm Reported-by: Ali Nematollahi --- examples/C/glib/add-connection-libnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/C/glib/add-connection-libnm.c b/examples/C/glib/add-connection-libnm.c index f206340e0c..7b20c9ab49 100644 --- a/examples/C/glib/add-connection-libnm.c +++ b/examples/C/glib/add-connection-libnm.c @@ -37,7 +37,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. -- cgit v1.2.1