From 846b5efbf3c543d86f9b4ac8e19cea45a295c353 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Wed, 12 Feb 2020 00:55:12 +0000 Subject: [PATCH] [sofia-sip] scan-build: Value stored to 's' during its initialization is never read - nua_handle_contact_by_via() --- libs/sofia-sip/libsofia-sip-ua/nua/nua_register.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/nua_register.c b/libs/sofia-sip/libsofia-sip-ua/nua/nua_register.c index ab18e28be6..df375b54b7 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/nua_register.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/nua_register.c @@ -2068,9 +2068,10 @@ sip_contact_t *nua_handle_contact_by_via(nua_handle_t *nh, /* Make transport parameter lowercase */ if (strlen(transport) < (sizeof _transport)) { - char *s = strcpy(_transport, transport); + char *s; short c; + strcpy(_transport, transport); for (s = _transport; (c = *s) && c != ';'; s++) if (isupper(c)) *s = tolower(c);