Commit 394902e0 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fix unitinialized variable in not frequently used code bug #172182 Daniel

* encoding.c: fix unitinialized variable in not frequently used
  code bug #172182
Daniel
parent 0e460da3
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
......
......@@ -2332,7 +2332,7 @@ ISO8859xToUTF8(unsigned char* out, int *outlen,
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 @@ ISO8859xToUTF8(unsigned char* out, int *outlen,
return(-1);
outend = out + *outlen;
inend = in + *inlen;
instop = inend;
c = *in;
while (in < inend && out < outend - 1) {
if (c >= 0x80) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment