commit 4437fc1cbe98489efd130449197297621ee0dff3
Author: Paul Bolle <pebolle@tiscali.nl>
Date:   Sat Aug 22 17:34:44 2009 +0200

    g_str_hash() and g_int_hash() are not NULL safe
    
    Document that g_str_hash() and g_int_hash() are not NULL safe.
    
    Signed-off-by: Paul Bolle <pebolle@tiscali.nl>

diff --git a/glib/gstring.c b/glib/gstring.c
index dcd9ffb..1f8f651 100644
--- a/glib/gstring.c
+++ b/glib/gstring.c
@@ -89,6 +89,8 @@ g_str_equal (gconstpointer v1,
  * It can be passed to g_hash_table_new() as the @hash_func 
  * parameter, when using strings as keys in a #GHashTable.
  *
+ * Note that is is not safe to pass %NULL as @v.
+ *
  * Returns: a hash value corresponding to the key
  */
 guint
diff --git a/glib/gutils.c b/glib/gutils.c
index 8b7bfe8..a50c8ec 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -3240,6 +3240,8 @@ g_int_equal (gconstpointer v1,
  * It can be passed to g_hash_table_new() as the @hash_func parameter, 
  * when using pointers to integers values as keys in a #GHashTable.
  *
+ * Note that it is not safe to pass %NULL as @v.
+ *
  * Returns: a hash value corresponding to the key.
  */
 guint
