From d2ad1a8e63152b934e1c1d01b14cbe159d492ca5 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 13 Feb 2007 15:56:12 +0000 Subject: [PATCH] Un-break build on ANSI compilers (like msvc) by moving Assert to position after variable declarations. --- src/backend/utils/adt/xml.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c index 2d3a2d963f..111dc121cf 100644 --- a/src/backend/utils/adt/xml.c +++ b/src/backend/utils/adt/xml.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.27 2007/02/11 22:18:15 petere Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.28 2007/02/13 15:56:12 mha Exp $ * *------------------------------------------------------------------------- */ @@ -1320,16 +1320,16 @@ is_valid_xml_namechar(pg_wchar c) char * map_sql_identifier_to_xml_name(char *ident, bool fully_escaped, bool escape_period) { +#ifdef USE_LIBXML + StringInfoData buf; + char *p; + /* * SQL/XML doesn't make use of this case anywhere, so it's * probably a mistake. */ Assert(fully_escaped || !escape_period); -#ifdef USE_LIBXML - StringInfoData buf; - char *p; - initStringInfo(&buf); for (p = ident; *p; p += pg_mblen(p)) -- 2.40.0