Merge pull request #328 from dragos-oancea/sofia-nua_register-val-never_read-
[sofia-sip] scan-build: Value stored to 's' during its initialization is never read - nua_handle_contact_by_via()
This commit is contained in:
commit
92a87119bc
|
@ -2068,9 +2068,10 @@ sip_contact_t *nua_handle_contact_by_via(nua_handle_t *nh,
|
||||||
|
|
||||||
/* Make transport parameter lowercase */
|
/* Make transport parameter lowercase */
|
||||||
if (strlen(transport) < (sizeof _transport)) {
|
if (strlen(transport) < (sizeof _transport)) {
|
||||||
char *s = strcpy(_transport, transport);
|
char *s;
|
||||||
short c;
|
short c;
|
||||||
|
|
||||||
|
strcpy(_transport, transport);
|
||||||
for (s = _transport; (c = *s) && c != ';'; s++)
|
for (s = _transport; (c = *s) && c != ';'; s++)
|
||||||
if (isupper(c))
|
if (isupper(c))
|
||||||
*s = tolower(c);
|
*s = tolower(c);
|
||||||
|
|
Loading…
Reference in New Issue