]> granicus.if.org Git - libexpat/commitdiff
showVersion(): Only check for \ in the path on Windows, the same as
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Thu, 22 Aug 2002 21:55:25 +0000 (21:55 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Thu, 22 Aug 2002 21:55:25 +0000 (21:55 +0000)
                in tmain().

expat/xmlwf/xmlwf.c

index 70ee4a03ebe75104fce23b03e961e9ff628a5fc5..443624c8f4e60a1f1f1bfebba0b1ff7139e0c679 100755 (executable)
@@ -587,7 +587,11 @@ showVersion(XML_Char *prog)
   XML_Char *s = prog;
   XML_Char ch;
   while ((ch = *s) != 0) {
-    if (ch == '/' || ch == '\\')
+    if (ch == '/'
+#ifdef WIN32
+        || ch == '\\'
+#endif
+        )
       prog = s + 1;
     ++s;
   }