mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
g-ir-generate: fix missing error handling for command line parsing
The error arg was used but the result never checked.
This commit is contained in:
committed by
Philip Withnall
parent
ea917797bb
commit
d70551e624
@@ -60,7 +60,12 @@ main (int argc, char *argv[])
|
||||
|
||||
context = g_option_context_new ("");
|
||||
g_option_context_add_main_entries (context, options, NULL);
|
||||
g_option_context_parse (context, &argc, &argv, &error);
|
||||
if (!g_option_context_parse (context, &argc, &argv, &error))
|
||||
{
|
||||
g_fprintf (stderr, "failed to parse: %s\n", error->message);
|
||||
g_error_free (error);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!input)
|
||||
{
|
||||
|
Reference in New Issue
Block a user