aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-05-28 18:24:23 -0300
committerFelipe Oliveira Carvalho <felipekde@gmail.com>2014-06-16 01:31:35 -0300
commit48fc1602bef4d74e3510b549d328127386261f06 (patch)
treede13df77c4e936c2cfe87971ba68f0776bd5986e /src/nvim/eval.c
parent6f29364632192a046839c24b8256da627fbb1067 (diff)
downloadrneovim-48fc1602bef4d74e3510b549d328127386261f06.tar.gz
rneovim-48fc1602bef4d74e3510b549d328127386261f06.tar.bz2
rneovim-48fc1602bef4d74e3510b549d328127386261f06.zip
No OOM in hash_may_resize() and hash_add_item()
hash_add() can still return FAIL if the key already exists.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 249076a504..3c79600f23 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -5781,7 +5781,7 @@ static dict_T *dict_copy(dict_T *orig, int deep, int copyID)
/*
* Add item "item" to Dictionary "d".
- * Returns FAIL when out of memory and when key already exists.
+ * Returns FAIL when key already exists.
*/
int dict_add(dict_T *d, dictitem_T *item)
{
@@ -5815,7 +5815,7 @@ int dict_add_nr_str(dict_T *d, char *key, long nr, char_u *str)
/*
* Add a list entry to dictionary "d".
- * Returns FAIL when out of memory and when key already exists.
+ * Returns FAIL when key already exists.
*/
int dict_add_list(dict_T *d, char *key, list_T *list)
{