summaryrefslogtreecommitdiff
path: root/hashlib.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-21 20:51:19 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-21 20:51:19 -0500
commit0001803f0b9523c94fa2ede48eaecb047fef4524 (patch)
treef334332811e033ff966d94f6268f0629a94304b3 /hashlib.c
parent89a92869e56aba4e4cab2d639c00a86f0545c862 (diff)
downloadbash-0001803f0b9523c94fa2ede48eaecb047fef4524.tar.gz
Bash-4.1 distribution source
Diffstat (limited to 'hashlib.c')
-rw-r--r--hashlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hashlib.c b/hashlib.c
index ccde9b9f..ea67dfc7 100644
--- a/hashlib.c
+++ b/hashlib.c
@@ -177,7 +177,7 @@ hash_search (string, table, flags)
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))
{