aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-12-12 18:33:52 +0100
committerMatthias Andree <matthias.andree@gmx.de>2016-12-11 22:06:00 +0100
commit2c5e7476e4f44c5d96ebaead2adc3782f53e193d (patch)
treeb65ad0f3428fd144f59a817230d9561b83311fd4
parent27564aac2eb2c1ab7b25bffad45647188d23e2fa (diff)
downloadfetchmail-2c5e7476e4f44c5d96ebaead2adc3782f53e193d.tar.gz
fetchmail-2c5e7476e4f44c5d96ebaead2adc3782f53e193d.tar.bz2
fetchmail-2c5e7476e4f44c5d96ebaead2adc3782f53e193d.zip
Fix uninitialized variable.
-rw-r--r--uid_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uid_db.c b/uid_db.c
index d9315892..7336a00e 100644
--- a/uid_db.c
+++ b/uid_db.c
@@ -72,7 +72,7 @@ static struct pat_node *walk_down(struct uid_db *db, struct uid_db_record *rec,
This routine is intended for inserts only.
*/
struct pat_node *cur, **edge;
- unsigned bit_ndx, v, ofs;
+ unsigned bit_ndx, v = 0, ofs;
cur = db->pat_root;
ofs = -1;
@@ -410,7 +410,7 @@ struct uid_db_record *find_uid_by_id(struct uid_db *db, char const *id)
*/
struct pat_node *np;
struct uid_db_record *rec;
- unsigned v, bit_ndx, ofs;
+ unsigned v = 0, bit_ndx, ofs;
size_t len;
np = db->pat_root;