commit | 0921ecff1c5a74541bad6c073e8ade32247403d8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Apr 03 22:44:36 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Apr 03 22:44:36 2016 +0200 |
tree | b35a348a88d035fbb75131cbfee3bdcb7809ac40 | |
parent | e185c1efba3cb2611ac303c39a08e908497cbac4 [diff] [blame] |
patch 7.4.1707 Problem: Cannot use empty dictionary key, even though it can be useful. Solution: Allow using an empty dictionary key.
diff --git a/src/hashtab.c b/src/hashtab.c index d1ba2c9..f9c7c27 100644 --- a/src/hashtab.c +++ b/src/hashtab.c
@@ -468,8 +468,7 @@ 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.