From 48fc1602bef4d74e3510b549d328127386261f06 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Wed, 28 May 2014 18:24:23 -0300 Subject: No OOM in hash_may_resize() and hash_add_item() hash_add() can still return FAIL if the key already exists. --- src/nvim/eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/eval.c') 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) { -- cgit