From 1bc4f08eaac49e38f91a6bba89bf3092c1a60568 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 25 Dec 2009 01:11:56 +0100 Subject: [PATCH] Fix uninit var in ber_decinteger --- src/ber_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ber_int.c b/src/ber_int.c index 2d55921..7f3679c 100644 --- a/src/ber_int.c +++ b/src/ber_int.c @@ -100,7 +100,7 @@ int ber_decinteger(const unsigned char *buf, Odr_int *val, int max) b += res; if (*b & 0x80) - for (; i < sizeof(uval) - len; i++) + for (i = 0; i < sizeof(uval) - len; i++) uval = (uval << 8) + 0xFF; for (i = 0; i < len; i++) uval = (uval << 8) + b[i]; -- 1.7.10.4