const char *e;
int r;
+ if (zstr(file)) {
+ return SWITCH_FALSE;
+ }
+
while(*file == '{') {
if ((e = switch_find_end_paren(file, '{', '}'))) {
file = e + 1;
}
#ifdef WIN32
- r = (file && (*file == '\\' || *(file + 1) == ':' || *file == '/' || strstr(file, SWITCH_URL_SEPARATOR)));
+ r = (*file == '\\' || *(file + 1) == ':' || *file == '/' || strstr(file, SWITCH_URL_SEPARATOR));
#else
- r = (file && ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR)));
+ r = ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR));
#endif
return r ? SWITCH_TRUE : SWITCH_FALSE;
-
}