diff --git a/examples/C/glib/add-connection-libnm.c b/examples/C/glib/add-connection-libnm.c index 75048bd8f1..9b323084d6 100644 --- a/examples/C/glib/add-connection-libnm.c +++ b/examples/C/glib/add-connection-libnm.c @@ -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.