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.
This commit is contained in:
Chun-wei Fan 2017-05-18 20:42:28 -07:00 committed by Philip Withnall
parent 55bca7b445
commit ea917797bb

View File

@ -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))
{