showVersion(): Only check for \ in the path on Windows, the same as

in tmain().
This commit is contained in:
Fred L. Drake, Jr. 2002-08-22 21:55:25 +00:00
parent 803bc07fa7
commit 4b551b1b96

View file

@ -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;
}