Update mod_voicemail.c

This commit is contained in:
timando 2023-08-31 12:44:24 +10:00 committed by GitHub
parent eca1985ba9
commit 30aa4c51c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -209,14 +209,14 @@ const char * mwi_reason2str(mwi_reason_t state)
switch_status_t vm_file_exists(const char *filename, switch_memory_pool_t *pool) switch_status_t vm_file_exists(const char *filename, switch_memory_pool_t *pool)
{ {
//If filename is a URL, assume it exists //If filename is a URL, assume it exists
if(strstr(filename, "://")) return SWITCH_STATUS_SUCCESS; if(filename && strstr(filename, "://")) return SWITCH_STATUS_SUCCESS;
return switch_file_exists(filename, pool); return switch_file_exists(filename, pool);
} }
switch_status_t vm_dir_make_recursive(const char *path, switch_fileperms_t perm, switch_memory_pool_t *pool) switch_status_t vm_dir_make_recursive(const char *path, switch_fileperms_t perm, switch_memory_pool_t *pool)
{ {
//If path is a url e.g. mod_http_cache, assume success //If path is a url e.g. mod_http_cache, assume success
if(strstr(path, "://")) return SWITCH_STATUS_SUCCESS; if(path && strstr(path, "://")) return SWITCH_STATUS_SUCCESS;
return switch_dir_make_recursive(path, perm, pool); return switch_dir_make_recursive(path, perm, pool);
} }