examples: fix crash in add-connection-libnm

Reported-by: Ali Nematollahi <alirezan1@gmail.com>
(cherry picked from commit 76348adb8e)
This commit is contained in:
Beniamino Galvani 2016-04-20 07:46:27 +02:00
parent 866a5389e1
commit 8fa4375e9e

View file

@ -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.