summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-04-20 07:46:27 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2016-04-20 07:48:17 +0200
commit76348adb8ea4f97497442d13c86f838332f035f0 (patch)
tree381c8520125c245f45b1c72ba32a0e78ed5cf93a
parent2b0e5cd6e6fd5f03bd82cbf7bd16f5a1a6b89775 (diff)
downloadNetworkManager-76348adb8ea4f97497442d13c86f838332f035f0.tar.gz
examples: fix crash in add-connection-libnm
Reported-by: Ali Nematollahi <alirezan1@gmail.com>
-rw-r--r--examples/C/glib/add-connection-libnm.c2
1 files changed, 1 insertions, 1 deletions
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.