]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] scan-build: Dereference of null pointer (loaded from variable 'result') -... 339/head
authorDragos Oancea <dragos@signalwire.com>
Wed, 12 Feb 2020 10:23:32 +0000 (10:23 +0000)
committerDragos Oancea <dragos@signalwire.com>
Wed, 12 Feb 2020 10:23:32 +0000 (10:23 +0000)
src/switch_ivr_async.c

index 96e26f2cc0c38e6a9d24bb8a23a8d22bdb399de2..5753721fa36cb5f8d741eb269ded9675305cf079 100644 (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);