From e84738d92c54dbe4c9612525dba6956e81a7983f Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Fri, 31 Jan 2020 15:27:54 +0000 Subject: [PATCH] [sofia-sip] scan-build: Assigned value is garbage or undefined - outgoing_naptr_tport() --- libs/sofia-sip/libsofia-sip-ua/nta/nta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c index 9b2e295007..04e64caf57 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c +++ b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c @@ -10546,7 +10546,7 @@ struct sipdns_tport const * outgoing_naptr_tport(nta_outgoing_t *orq, sres_record_t *answers[]) { int i, j, order, pref; - int orders[SIPDNS_TRANSPORTS], prefs[SIPDNS_TRANSPORTS]; + int orders[SIPDNS_TRANSPORTS] = {0}, prefs[SIPDNS_TRANSPORTS]; struct sipdns_tport const *tport; struct sipdns_resolver *sr = orq->orq_resolver;