diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/inode_hash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c index 0705102..78c1b0f 100644 --- a/libbb/inode_hash.c +++ b/libbb/inode_hash.c @@ -77,7 +77,7 @@ void reset_ino_dev_hashtable(void) int i; ino_dev_hashtable_bucket_t *bucket; - for (i = 0; i < HASH_SIZE; i++) { + for (i = 0; ino_dev_hashtable && i < HASH_SIZE; i++) { while (ino_dev_hashtable[i] != NULL) { bucket = ino_dev_hashtable[i]->next; free(ino_dev_hashtable[i]); @@ -87,4 +87,6 @@ void reset_ino_dev_hashtable(void) free(ino_dev_hashtable); ino_dev_hashtable = NULL; } +#else +void reset_ino_dev_hashtable(void); #endif |