]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[sofia-sip] scan-build: Value stored to 's' during its initialization is never read... 328/head
authorDragos Oancea <dragos@signalwire.com>
Wed, 12 Feb 2020 00:55:12 +0000 (00:55 +0000)
committerDragos Oancea <dragos@signalwire.com>
Wed, 12 Feb 2020 00:55:12 +0000 (00:55 +0000)
libs/sofia-sip/libsofia-sip-ua/nua/nua_register.c

index ab18e28be6f3d1cea47c5c14e276f278f9056529..df375b54b7e5501c9f9c8a3b9b6253e0dc194aa2 100644 (file)
@@ -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);