summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2016-03-25 10:31:39 +0000
committerminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2016-03-25 10:31:39 +0000
commitc580e36d3e541195842c0a54941c5b8492056997 (patch)
treee0513c6de9fcc9c1bdfe68f95694faa8ea349a36
parentcc3a3ebdfb41fa38bcb1a2b9224438c7f766c315 (diff)
downloadlibapr-c580e36d3e541195842c0a54941c5b8492056997.tar.gz
Clarify the behaviour of apr_hash_set().
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1736554 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--include/apr_hash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/apr_hash.h b/include/apr_hash.h
index 37d972f9d..2276f84c3 100644
--- a/include/apr_hash.h
+++ b/include/apr_hash.h
@@ -102,7 +102,8 @@ APR_DECLARE(apr_hash_t *) apr_hash_copy(apr_pool_t *pool,
* @param key Pointer to the key
* @param klen Length of the key. Can be APR_HASH_KEY_STRING to use the string length.
* @param val Value to associate with the key
- * @remark If the value is NULL the hash entry is deleted.
+ * @remark If the value is NULL the hash entry is deleted. The key is stored as is,
+ * and so must have a lifetime at least as long as the hash table's pool.
*/
APR_DECLARE(void) apr_hash_set(apr_hash_t *ht, const void *key,
apr_ssize_t klen, const void *val);