Add an assert to make it clear when value can be NULL.

2006-04-12  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (parse_arg): Add an assert to make it
	clear when value can be NULL.
This commit is contained in:
Matthias Clasen 2006-04-12 15:38:27 +00:00 committed by Matthias Clasen
parent 51b4341664
commit 75ed18d067
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (parse_arg): Add an assert to make it
clear when value can be NULL.
2006-04-07 Martyn Russell <martyn@imendio.com>
* tests/threadpool-test.c: (test_thread_stop_unused): Removed an

View File

@ -1,3 +1,8 @@
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (parse_arg): Add an assert to make it
clear when value can be NULL.
2006-04-07 Martyn Russell <martyn@imendio.com>
* tests/threadpool-test.c: (test_thread_stop_unused): Removed an

View File

@ -767,7 +767,9 @@ parse_arg (GOptionContext *context,
{
Change *change;
g_assert (value || OPTIONAL_ARG (entry) || NO_ARG (entry));
switch (entry->arg)
{
case G_OPTION_ARG_NONE: