From: Dragos Oancea Date: Wed, 12 Feb 2020 10:23:32 +0000 (+0000) Subject: [core] scan-build: Dereference of null pointer (loaded from variable 'result') -... X-Git-Tag: v1.10.3^2~190^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b446dc737084d77dbaaf9bec9c53243c1157aa5b;p=thirdparty%2Ffreeswitch.git [core] scan-build: Dereference of null pointer (loaded from variable 'result') - switch_ivr_play_and_detect_speech() --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 96e26f2cc0..5753721fa3 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -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);