From a2f544cf7fb2380f97fa7bb89001c9f19f10f1e5 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Mon, 17 Feb 2020 14:36:48 +0400 Subject: [PATCH] [sofia-sip] scan-build: Fix "The left operand of '<' is a garbage value" (prefs) in outgoing_naptr_tport() of nta.c --- 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 70aa8d1e4d..ef939f895f 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c +++ b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c @@ -10551,7 +10551,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] = {0}, prefs[SIPDNS_TRANSPORTS]; + int orders[SIPDNS_TRANSPORTS] = {0}, prefs[SIPDNS_TRANSPORTS] = {0}; struct sipdns_tport const *tport; struct sipdns_resolver *sr = orq->orq_resolver;