+2004-12-19 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (g_option_context_parse): Call
+ post-parse hooks also if argv is NULL. (#161668,
+ Marcin Krzyzanowski)
+
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
+2004-12-19 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (g_option_context_parse): Call
+ post-parse hooks also if argv is NULL. (#161668,
+ Marcin Krzyzanowski)
+
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
+2004-12-19 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (g_option_context_parse): Call
+ post-parse hooks also if argv is NULL. (#161668,
+ Marcin Krzyzanowski)
+
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
+2004-12-19 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (g_option_context_parse): Call
+ post-parse hooks also if argv is NULL. (#161668,
+ Marcin Krzyzanowski)
+
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
+2004-12-19 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (g_option_context_parse): Call
+ post-parse hooks also if argv is NULL. (#161668,
+ Marcin Krzyzanowski)
+
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
}
}
+ }
- /* Call post-parse hooks */
- list = context->groups;
- while (list)
- {
- GOptionGroup *group = list->data;
-
- if (group->post_parse_func)
- {
- if (!(* group->post_parse_func) (context, group,
- group->user_data, error))
- goto fail;
- }
-
- list = list->next;
- }
-
- if (context->main_group && context->main_group->post_parse_func)
+ /* Call post-parse hooks */
+ list = context->groups;
+ while (list)
+ {
+ GOptionGroup *group = list->data;
+
+ if (group->post_parse_func)
{
- if (!(* context->main_group->post_parse_func) (context, context->main_group,
- context->main_group->user_data, error))
+ if (!(* group->post_parse_func) (context, group,
+ group->user_data, error))
goto fail;
}
-
+
+ list = list->next;
+ }
+
+ if (context->main_group && context->main_group->post_parse_func)
+ {
+ if (!(* context->main_group->post_parse_func) (context, context->main_group,
+ context->main_group->user_data, error))
+ goto fail;
+ }
+
+ if (argc && argv)
+ {
free_pending_nulls (context, TRUE);
for (i = 1; i < *argc; i++)