[core] scan-build: Dereference of null pointer (loaded from variable 'result') - switch_ivr_play_and_detect_speech()

This commit is contained in:
Dragos Oancea 2020-02-12 10:23:32 +00:00
parent 1b66e76548
commit b446dc7370
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);