fix unitinialized variable in not frequently used code bug #172182 Daniel
* encoding.c: fix unitinialized variable in not frequently used
code bug #172182
Daniel
diff --git a/ChangeLog b/ChangeLog
index 1acaf68..1217b05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Mar 31 10:41:45 CEST 2005 Daniel Veillard <daniel@veillard.com>
+
+ * encoding.c: fix unitinialized variable in not frequently used
+ code bug #172182
+
Thu Mar 31 00:45:18 CEST 2005 Daniel Veillard <daniel@veillard.com>
* python/generator.py python/libxml.py: another patch from Brent
diff --git a/encoding.c b/encoding.c
index a3dad07..ff12c82 100644
--- a/encoding.c
+++ b/encoding.c
@@ -2332,7 +2332,7 @@
unsigned char* outend;
const unsigned char* instart = in;
const unsigned char* inend;
- const unsigned char* instop = inend;
+ const unsigned char* instop;
unsigned int c;
if ((out == NULL) || (outlen == NULL) || (inlen == NULL) ||
@@ -2340,6 +2340,7 @@
return(-1);
outend = out + *outlen;
inend = in + *inlen;
+ instop = inend;
c = *in;
while (in < inend && out < outend - 1) {
if (c >= 0x80) {