mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-17 18:19:32 +08:00
fixed an uninitialized memory access pointed by valgrind on C14Ntests
* SAX.c: fixed an uninitialized memory access pointed by valgrind on C14Ntests Daniel
This commit is contained in:
parent
7fe1f3a502
commit
e502041f5b
@ -1,3 +1,8 @@
|
||||
Tue Apr 1 11:52:15 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* SAX.c: fixed an uninitialized memory access pointed by valgrind
|
||||
on C14Ntests
|
||||
|
||||
Tue Apr 1 00:12:28 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* relaxng.c: one more fixup of error message reporting
|
||||
|
6
SAX.c
6
SAX.c
@ -247,8 +247,10 @@ externalSubset(void *ctx, const xmlChar *name,
|
||||
/*
|
||||
* On the fly encoding conversion if needed
|
||||
*/
|
||||
enc = xmlDetectCharEncoding(ctxt->input->cur, 4);
|
||||
xmlSwitchEncoding(ctxt, enc);
|
||||
if (ctxt->input->length >= 4) {
|
||||
enc = xmlDetectCharEncoding(ctxt->input->cur, 4);
|
||||
xmlSwitchEncoding(ctxt, enc);
|
||||
}
|
||||
|
||||
if (input->filename == NULL)
|
||||
input->filename = (char *) xmlStrdup(SystemID);
|
||||
|
Loading…
Reference in New Issue
Block a user