mirror of
https://github.com/curl/curl.git
synced 2026-05-14 14:46:21 +03:00
urlapi: skip a pointless assign
It stores a null byte after already having confirmed there is a null byte there. Detected by PVS. Ref: #10929 Closes #10943
This commit is contained in:
parent
8203aa6ed4
commit
3f1d89ed24
1 changed files with 0 additions and 1 deletions
|
|
@ -541,7 +541,6 @@ UNITTEST CURLUcode Curl_parse_port(struct Curl_URL *u, struct dynbuf *host,
|
|||
if(rest[0])
|
||||
return CURLUE_BAD_PORT_NUMBER;
|
||||
|
||||
*rest = 0;
|
||||
u->portnum = port;
|
||||
/* generate a new port number string to get rid of leading zeroes etc */
|
||||
u->port = aprintf("%ld", port);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue