Merge pull request #423 from signalwire/mod_imagick

[mod_imagick] Remove unused variable.
This commit is contained in:
Andrey Volk 2020-02-26 23:40:50 +04:00 committed by GitHub
commit 01985cf5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -147,7 +147,6 @@ static switch_status_t imagick_file_open(switch_file_handle_t *handle, const cha
{
pdf_file_context_t *context;
char *ext;
unsigned int flags = 0;
char range_path[1024];
if ((ext = strrchr((char *)path, '.')) == 0) {
@ -173,10 +172,6 @@ static switch_status_t imagick_file_open(switch_file_handle_t *handle, const cha
return SWITCH_STATUS_GENERR;
}
if (switch_test_flag(handle, SWITCH_FILE_FLAG_READ)) {
flags |= SWITCH_FOPEN_READ;
}
if (ext && !strcmp(ext, "gif")) {
context->autoplay = 1;
}