]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] coverity CID 1395576 (Uninitialized pointer read)
authorDragos Oancea <dragos@signalwire.com>
Wed, 31 May 2023 12:44:56 +0000 (15:44 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 31 May 2023 21:43:08 +0000 (00:43 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index 38a3bc302a0dc1ca0c53d201c7628a08f6a10ca9..00b2b4de0004214227e33a65929233d24bdb467c 100644 (file)
@@ -3954,7 +3954,7 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
        cJSON *obj = cJSON_CreateObject(), *vobj = NULL, *dedEnc = NULL, *mirrorInput, *bandwidth = NULL, *canvas = NULL;
        switch_core_session_t *session = NULL;
        switch_channel_t *channel;
-       switch_event_t *var_event;
+       switch_event_t *var_event = NULL;
        switch_call_cause_t reason = SWITCH_CAUSE_INVALID_MSG_UNSPECIFIED, cancel_cause = 0;
        switch_caller_profile_t *caller_profile;
        int err = 0;