FS-11785 [core] fix scan-build issues

This commit is contained in:
Chris Rienzo authored and Andrey Volk committed 2019-07-17 21:51:06 +04:00
1 parent bc6fe22a0b
commit 239bf913f4
4 files changed
+6 -15

No files matched your search

+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) {