mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
51b4341664
commit
75ed18d067
@ -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
|
||||
|
@ -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
|
||||
|
@ -768,6 +768,8 @@ parse_arg (GOptionContext *context,
|
||||
{
|
||||
Change *change;
|
||||
|
||||
g_assert (value || OPTIONAL_ARG (entry) || NO_ARG (entry));
|
||||
|
||||
switch (entry->arg)
|
||||
{
|
||||
case G_OPTION_ARG_NONE:
|
||||
|
Loading…
Reference in New Issue
Block a user