Author: tfaber
Date: Sat Jul 9 21:01:11 2016
New Revision: 71877
URL:
http://svn.reactos.org/svn/reactos?rev=71877&view=rev
Log:
[LIBXML2]
- Fix MSVC build (already fixed upstream)
Modified:
trunk/reactos/sdk/lib/3rdparty/libxml2/relaxng.c
trunk/reactos/sdk/lib/3rdparty/libxml2/xmlschemas.c
Modified: trunk/reactos/sdk/lib/3rdparty/libxml2/relaxng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/3rdparty/libxml2/r…
==============================================================================
--- trunk/reactos/sdk/lib/3rdparty/libxml2/relaxng.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/3rdparty/libxml2/relaxng.c [iso-8859-1] Sat Jul 9 21:01:11
2016
@@ -2088,6 +2088,7 @@
const xmlChar * arg2)
{
char msg[1000];
+ xmlChar *result;
if (arg1 == NULL)
arg1 = BAD_CAST "";
@@ -2215,7 +2216,7 @@
snprintf(msg, 1000, "Unknown error code %d\n", err);
}
msg[1000 - 1] = 0;
- xmlChar *result = xmlCharStrdup(msg);
+ result = xmlCharStrdup(msg);
return (xmlEscapeFormatString(&result));
}
Modified: trunk/reactos/sdk/lib/3rdparty/libxml2/xmlschemas.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/3rdparty/libxml2/x…
==============================================================================
--- trunk/reactos/sdk/lib/3rdparty/libxml2/xmlschemas.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/3rdparty/libxml2/xmlschemas.c [iso-8859-1] Sat Jul 9 21:01:11
2016
@@ -3168,8 +3168,8 @@
"valid.");
}
if (expected) {
+ xmlChar *expectedEscaped = xmlCharStrdup(expected);
msg = xmlStrcat(msg, BAD_CAST " Expected is '");
- xmlChar *expectedEscaped = xmlCharStrdup(expected);
msg = xmlStrcat(msg, xmlEscapeFormatString(&expectedEscaped));
FREE_AND_NULL(expectedEscaped);
msg = xmlStrcat(msg, BAD_CAST "'.\n");