Commit bd177ce1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Return -1 if queue is NULL. (#159530, Philippe Blain)

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

	* glib/gqueue.c (g_queue_link_index): Return -1 if queue is
	NULL.  (#159530, Philippe Blain)
parent 1f282dc2
2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is
NULL. (#159530, Philippe Blain)
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
......
2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is
NULL. (#159530, Philippe Blain)
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
......
2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is
NULL. (#159530, Philippe Blain)
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
......
2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is
NULL. (#159530, Philippe Blain)
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
......
2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is
NULL. (#159530, Philippe Blain)
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version.
......
......@@ -730,7 +730,7 @@ gint
g_queue_link_index (GQueue *queue,
GList *link_)
{
g_return_val_if_fail (queue != NULL, 0);
g_return_val_if_fail (queue != NULL, -1);
return g_list_position (queue->head, link_);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment