shithub: mc

Download patch

ref: 67a8b4e0b7d43a09fa0f33d49f94a7cf7c9f7cbd
parent: 452ac3b08e239c88311f727f63907a0e11196596
author: Ori Bernstein <[email protected]>
date: Sun May 13 10:32:35 EDT 2012

Fix uniniitalized variable use.

--- a/parse/htab.c
+++ b/parse/htab.c
@@ -68,6 +68,7 @@
     ulong h;
     int di;
 
+    di = 0;
     h = hash(ht, k);
     i = h & (ht->sz - 1);
     while (ht->hashes[i]) {
@@ -92,6 +93,7 @@
     ulong h;
     int di;
 
+    di = 0;
     h = hash(ht, k);
     i = h & (ht->sz - 1);
     while (ht->hashes[i] && ht->hashes[i] != h) {