Merge pull request #339 from dragos-oancea/switch_ivr_async-nullptr

[core] scan-build: Dereference of null pointer (loaded from variable 'result') - switch_ivr_play_and_detect_speech()
This commit is contained in:
Andrey Volk 2020-02-12 22:54:23 +04:00 committed by GitHub
commit 718c5f56a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -4624,7 +4624,9 @@ done:
if (state.done) {
status = SWITCH_STATUS_SUCCESS;
}
*result = state.result;
if (result) {
*result = state.result;
}
arg_recursion_check_stop(args);