mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08: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
@ -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…
Reference in New Issue
Block a user