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)
This commit is contained in:
Matthias Clasen 2004-12-04 18:32:54 +00:00 committed by Matthias Clasen
parent 1f282dc200
commit bd177ce103
6 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -1,3 +1,8 @@
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.

View File

@ -1,3 +1,8 @@
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.

View File

@ -1,3 +1,8 @@
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.

View File

@ -1,3 +1,8 @@
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.

View File

@ -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_);
}