mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
fixed xmlSaveFormatFileEnc() when encoding == NULL Fixes bug #67229 Daniel
* tree.c: fixed xmlSaveFormatFileEnc() when encoding == NULL Fixes bug #67229 Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 13 21:30:54 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* tree.c: fixed xmlSaveFormatFileEnc() when encoding == NULL
|
||||||
|
Fixes bug #67229
|
||||||
|
|
||||||
Sun Jan 13 17:14:06 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Sun Jan 13 17:14:06 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* tree.c: trying to avoid troubles when a subtree is copied
|
* tree.c: trying to avoid troubles when a subtree is copied
|
||||||
|
3
tree.c
3
tree.c
@ -6603,6 +6603,9 @@ xmlSaveFormatFileEnc( const char * filename, xmlDocPtr cur,
|
|||||||
xmlCharEncoding enc;
|
xmlCharEncoding enc;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (encoding == NULL)
|
||||||
|
encoding = (const char *) cur->encoding;
|
||||||
|
|
||||||
if (encoding != NULL) {
|
if (encoding != NULL) {
|
||||||
|
|
||||||
enc = xmlParseCharEncoding(encoding);
|
enc = xmlParseCharEncoding(encoding);
|
||||||
|
Reference in New Issue
Block a user