projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0988d80
)
Fix uninit var in ber_decinteger
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 25 Dec 2009 00:11:56 +0000
(
01:11
+0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 25 Dec 2009 00:11:56 +0000
(
01:11
+0100)
src/ber_int.c
patch
|
blob
|
history
diff --git
a/src/ber_int.c
b/src/ber_int.c
index
2d55921
..
7f3679c
100644
(file)
--- 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];