[glib] garray: Note lack of bounds checking in g_ptr_array_index() documentation
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] garray: Note lack of bounds checking in g_ptr_array_index() documentation
- Date: Tue, 5 Nov 2013 16:48:37 +0000 (UTC)
commit 4af135ce49e5c8aa8231e0c9e24f04f5cd917468
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Nov 5 16:43:26 2013 +0000
garray: Note lack of bounds checking in g_ptr_array_index() documentation
glib/garray.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/garray.c b/glib/garray.c
index 3bfbe9d..a93044b 100644
--- a/glib/garray.c
+++ b/glib/garray.c
@@ -865,6 +865,10 @@ struct _GRealPtrArray
*
* Returns the pointer at the given index of the pointer array.
*
+ * <note><para>
+ * This does not perform bounds checking on the given @index_, so you are
+ * responsible for checking it against the array length.</para></note>
+ *
* Returns: the pointer at the given index.
**/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]