From: Adam Dickmeiss Date: Fri, 25 Dec 2009 00:11:56 +0000 (+0100) Subject: Fix uninit var in ber_decinteger X-Git-Tag: v4.0.0~63 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1bc4f08eaac49e38f91a6bba89bf3092c1a60568;p=yaz-moved-to-github.git Fix uninit var in ber_decinteger --- 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];