summaryrefslogtreecommitdiffstats
path: root/src/hashtab.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-03 22:44:36 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-03 22:44:36 +0200
commit0921ecff1c5a74541bad6c073e8ade32247403d8 (patch)
treeb35a348a88d035fbb75131cbfee3bdcb7809ac40 /src/hashtab.c
parente185c1efba3cb2611ac303c39a08e908497cbac4 (diff)
patch 7.4.1707v7.4.1707
Problem: Cannot use empty dictionary key, even though it can be useful. Solution: Allow using an empty dictionary key.
Diffstat (limited to 'src/hashtab.c')
-rw-r--r--src/hashtab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hashtab.c b/src/hashtab.c
index d1ba2c9528..f9c7c27994 100644
--- a/src/hashtab.c
+++ b/src/hashtab.c
@@ -468,8 +468,7 @@ hash_hash(char_u *key)
char_u *p;
if ((hash = *key) == 0)
- return (hash_T)0; /* Empty keys are not allowed, but we don't
- want to crash if we get one. */
+ return (hash_T)0;
p = key + 1;
/* A simplistic algorithm that appears to do very well.