Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d2ad1a8

Browse files
committed
Un-break build on ANSI compilers (like msvc) by moving Assert to position
after variable declarations.
1 parent 43bcf56 commit d2ad1a8

File tree

1 file changed

+5
-5
lines changed
  • src/backend/utils/adt

1 file changed

+5
-5
lines changed

src/backend/utils/adt/xml.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.27 2007/02/11 22:18:15 petere Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.28 2007/02/13 15:56:12 mha Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1320,16 +1320,16 @@ is_valid_xml_namechar(pg_wchar c)
13201320
char *
13211321
map_sql_identifier_to_xml_name(char *ident, bool fully_escaped, bool escape_period)
13221322
{
1323+
#ifdef USE_LIBXML
1324+
StringInfoData buf;
1325+
char *p;
1326+
13231327
/*
13241328
* SQL/XML doesn't make use of this case anywhere, so it's
13251329
* probably a mistake.
13261330
*/
13271331
Assert(fully_escaped || !escape_period);
13281332

1329-
#ifdef USE_LIBXML
1330-
StringInfoData buf;
1331-
char *p;
1332-
13331333
initStringInfo(&buf);
13341334

13351335
for (p = ident; *p; p += pg_mblen(p))

0 commit comments

Comments
 (0)