2009-01-12 Tor Lillqvist <tml@novell.com>
* glib/goption.c (parse_arg): Guard against a mis-written
GOptionArgFunc that has returned FALSE but not set the GError.
svn path=/trunk/; revision=7804
+2009-01-12 Tor Lillqvist <tml@novell.com>
+
+ * glib/goption.c (parse_arg): Guard against a mis-written
+ GOptionArgFunc that has returned FALSE but not set the GError.
+
2009-01-10 Matthias Clasen <mclasen@redhat.com>
Bug 566573 – g_match_info_fetch_pos docs
retval = (* (GOptionArgFunc) entry->arg_data) (option_name, data, group->user_data, error);
+ if (!retval && error != NULL && *error == NULL)
+ g_set_error (error,
+ G_OPTION_ERROR, G_OPTION_ERROR_FAILED,
+ _("Error parsing option %s"), option_name);
+
g_free (data);
return retval;