mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36: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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user