From ea917797bb90ed1a614031a64b108bdb9f8f7718 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 18 May 2017 20:42:28 -0700 Subject: [PATCH] g-ir-inspect: Ensure variables are at the top of block We did not yet advertise C99 requirements for G-I yet, so let's not assume this yet. --- girepository/tools/g-ir-inspect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/girepository/tools/g-ir-inspect.c b/girepository/tools/g-ir-inspect.c index 2dfe61c29..5699e93d3 100644 --- a/girepository/tools/g-ir-inspect.c +++ b/girepository/tools/g-ir-inspect.c @@ -77,10 +77,11 @@ main (gint argc, { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &namespaces, "The typelib to inspect", "NAMESPACE" }, { NULL }, }; + GOptionContext *context = NULL; setlocale (LC_ALL, ""); - GOptionContext *context = g_option_context_new ("- Inspect GI typelib"); + context = g_option_context_new ("- Inspect GI typelib"); g_option_context_add_main_entries (context, options, NULL); if (!g_option_context_parse (context, &argc, &argv, &error)) {