]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
picky compilers
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jun 2009 21:55:02 +0000 (21:55 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jun 2009 21:55:02 +0000 (21:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13658 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml.c

index 057958c14eb9a17aafbf708271e0040fbfc2d6ee..1b77a99128deb0e3a6fdf5850dbe42884d6dd1a0 100644 (file)
@@ -768,7 +768,13 @@ static short switch_xml_internal_dtd(switch_xml_root_t root, char *s, switch_siz
                                *s = '\0';              /* null terminate tag name */
                        for (i = 0; root->attr[i] && strcmp(n, root->attr[i][0]); i++);
 
-                       while (*(n = ++s + strspn(s, SWITCH_XML_WS)) && *n != '>') {
+                       //while (*(n = ++s + strspn(s, SWITCH_XML_WS)) && *n != '>') {
+                       // gcc 4.4 you are a creep
+                       for(;;) {
+                               s++;
+                               if (!(*(n = s + strspn(s, SWITCH_XML_WS)) && *n != '>')) {
+                                       break;
+                               }
                                if (*(s = n + strcspn(n, SWITCH_XML_WS)))
                                        *s = '\0';      /* attr name */
                                else {