提交 da7f9715 authored 作者: Jeff Lenk's avatar Jeff Lenk

fix backspace path under windows - handles any order

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16182 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b9681e5a
......@@ -1484,10 +1484,11 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_parse_file(const char *file)
int fd = -1, write_fd = -1;
switch_xml_t xml = NULL;
char *new_file = NULL;
const char *abs;
const char *abs, *absw;
if ((abs = strrchr(file, '/')) || (abs = strrchr(file, '\\'))) {
abs++;
abs = strrchr(file, '/'); absw = strrchr(file, '\\');
if (abs || absw) {
abs > absw ? abs++ : (abs = ++absw);
} else {
abs = file;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论