From 6ffc3465aa126cb826dca5a52460a80157fe3777 Mon Sep 17 00:00:00 2001 From: Robert Love Date: Mon, 29 May 2006 14:58:13 +0000 Subject: [PATCH] * gnome/vpn-properties/nm-vpn-properties.c: Don't define 'error' if libgnome is >=2.14 git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1785 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- gnome/vpn-properties/nm-vpn-properties.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnome/vpn-properties/nm-vpn-properties.c b/gnome/vpn-properties/nm-vpn-properties.c index aeedffb5fb..692e1abfe6 100644 --- a/gnome/vpn-properties/nm-vpn-properties.c +++ b/gnome/vpn-properties/nm-vpn-properties.c @@ -1092,7 +1092,6 @@ main (int argc, char *argv[]) gboolean do_import; gchar *import_svc = NULL; gchar *import_file = NULL; - GError *error; GOptionEntry entries[] = { { "import-service", 's', 0, G_OPTION_ARG_STRING, &import_svc, "VPN Service for importing", NULL}, { "import-file", 'f', 0, G_OPTION_ARG_FILENAME, &import_file, "File to import", NULL}, @@ -1111,9 +1110,12 @@ main (int argc, char *argv[]) GNOME_PARAM_GOPTION_CONTEXT, context, GNOME_PARAM_NONE); #else - g_option_context_add_group (context, gtk_get_option_group (TRUE)); - g_option_context_parse (context, &argc, &argv, &error); - g_option_context_free (context); + { + GError *error = NULL; + g_option_context_add_group (context, gtk_get_option_group (TRUE)); + g_option_context_parse (context, &argc, &argv, &error); + g_option_context_free (context); + } gnome_program_init ("nm-vpn-properties", VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_NONE, GNOME_PARAM_NONE);