From: Dragos Oancea Date: Thu, 27 Feb 2020 14:02:44 +0000 (+0000) Subject: [mod_skinny] scan-build: Assigned value is garbage or undefined X-Git-Tag: v1.10.3^2~99^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F457%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_skinny] scan-build: Assigned value is garbage or undefined --- diff --git a/src/mod/endpoints/mod_skinny/skinny_server.c b/src/mod/endpoints/mod_skinny/skinny_server.c index dd76626343..af7702a363 100644 --- a/src/mod/endpoints/mod_skinny/skinny_server.c +++ b/src/mod/endpoints/mod_skinny/skinny_server.c @@ -1928,7 +1928,7 @@ switch_status_t skinny_handle_capabilities_response(listener_t *listener, skinny uint32_t i = 0; uint32_t n = 0; - char *codec_order[SWITCH_MAX_CODECS]; + char *codec_order[SWITCH_MAX_CODECS] = {0}; char *codec_string; size_t string_len, string_pos, pos; @@ -2556,7 +2556,7 @@ switch_status_t skinny_handle_updatecapabilities(listener_t *listener, skinny_me uint32_t i = 0; uint32_t n = 0; - char *codec_order[SKINNY_MAX_CAPABILITIES]; + char *codec_order[SKINNY_MAX_CAPABILITIES] = {0}; char *codec_string; size_t string_len, string_pos, pos;