diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-03 22:44:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-03 22:44:36 +0200 |
commit | 0921ecff1c5a74541bad6c073e8ade32247403d8 (patch) | |
tree | b35a348a88d035fbb75131cbfee3bdcb7809ac40 /src/hashtab.c | |
parent | e185c1efba3cb2611ac303c39a08e908497cbac4 (diff) | |
download | vim-git-0921ecff1c5a74541bad6c073e8ade32247403d8.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hashtab.c b/src/hashtab.c index d1ba2c952..f9c7c2799 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. |