FS-11785 [core] fix scan-build issues

This commit is contained in:
Chris Rienzo
2019-05-03 00:58:51 +00:00
committed by Andrey Volk
parent bc6fe22a0b
commit 239bf913f4
4 changed files with 6 additions and 15 deletions
+2
View File
@@ -43,6 +43,8 @@ static switch_status_t get_file_size(switch_file_handle_t *fh, const char **stri
switch_file_t *newfile;
switch_size_t size = 0;
switch_assert(string);
status = switch_file_open(&newfile, fh->spool_path ? fh->spool_path : fh->file_path, SWITCH_FOPEN_READ, SWITCH_FPROT_OS_DEFAULT, fh->memory_pool);
if (status != SWITCH_STATUS_SUCCESS) {