summaryrefslogtreecommitdiffstats
path: root/newlib/libc/search/hash_buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/search/hash_buf.c')
-rw-r--r--newlib/libc/search/hash_buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/search/hash_buf.c b/newlib/libc/search/hash_buf.c
index 3dfc2069f..d50fc5720 100644
--- a/newlib/libc/search/hash_buf.c
+++ b/newlib/libc/search/hash_buf.c
@@ -119,8 +119,8 @@ __get_buf(hashp, addr, prev_bp, newpage)
{
BUFHEAD *bp;
__uint32_t is_disk_mask;
- int is_disk, segment_ndx;
- SEGMENT segp;
+ int is_disk, segment_ndx = 0;
+ SEGMENT segp = NULL;
is_disk = 0;
is_disk_mask = 0;