projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bash-4.1 distribution source
[platform/upstream/bash.git]
/
hashlib.c
diff --git
a/hashlib.c
b/hashlib.c
index
ccde9b9
..
ea67dfc
100644
(file)
--- a/
hashlib.c
+++ b/
hashlib.c
@@
-177,7
+177,7
@@
hash_search (string, table, flags)
bucket = HASH_BUCKET (string, table, hv);
bucket = HASH_BUCKET (string, table, hv);
- for (list = table->bucket_array
[bucket]
; list; list = list->next)
+ for (list = table->bucket_array
? table->bucket_array[bucket] : 0
; list; list = list->next)
{
if (hv == list->khash && STREQ (list->key, string))
{
{
if (hv == list->khash && STREQ (list->key, string))
{