examples: fix crash in add-connection-libnm

Reported-by: Ali Nematollahi <alirezan1@gmail.com>
This commit is contained in:
Beniamino Galvani 2016-04-20 07:46:27 +02:00
parent 2b0e5cd6e6
commit 76348adb8e

View file

@ -37,7 +37,7 @@ added_cb (GObject *client,
{ {
GMainLoop *loop = user_data; GMainLoop *loop = user_data;
NMRemoteConnection *remote; NMRemoteConnection *remote;
GError *error; GError *error = NULL;
/* NM responded to our request; either handle the resulting error or /* NM responded to our request; either handle the resulting error or
* print out the object path of the connection we just added. * print out the object path of the connection we just added.