From 2c5e7476e4f44c5d96ebaead2adc3782f53e193d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 12 Dec 2010 18:33:52 +0100 Subject: Fix uninitialized variable. --- uid_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uid_db.c') 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; -- cgit v1.2.3