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 868365180c
commit 6aeec6860d

View file

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