git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16182
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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;
}