~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to src/backend/utils/adt/xml.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mto: (6.1.1 sid) (10.1.1 oneiric-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20110614095329-71gfhjywyp2c27au
Tags: upstream-9.1~beta2
ImportĀ upstreamĀ versionĀ 9.1~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1067
1067
                if (xmlStrncmp(p, (xmlChar *) "'yes'", 5) == 0 ||
1068
1068
                        xmlStrncmp(p, (xmlChar *) "\"yes\"", 5) == 0)
1069
1069
                {
1070
 
                        *standalone = 1;
 
1070
                        if (standalone)
 
1071
                                *standalone = 1;
1071
1072
                        p += 5;
1072
1073
                }
1073
1074
                else if (xmlStrncmp(p, (xmlChar *) "'no'", 4) == 0 ||
1074
1075
                                 xmlStrncmp(p, (xmlChar *) "\"no\"", 4) == 0)
1075
1076
                {
1076
 
                        *standalone = 0;
 
1077
                        if (standalone)
 
1078
                                *standalone = 0;
1077
1079
                        p += 4;
1078
1080
                }
1079
1081
                else
1218
1220
                {
1219
1221
                        int                     res_code;
1220
1222
                        size_t          count;
1221
 
                        xmlChar    *version = NULL;
1222
 
                        int                     standalone = -1;
 
1223
                        xmlChar    *version;
 
1224
                        int                     standalone;
1223
1225
 
1224
1226
                        res_code = parse_xml_decl(utf8string,
1225
1227
                                                                          &count, &version, NULL, &standalone);