mirror of
https://github.com/curl/curl.git
synced 2026-08-02 16:40:33 +03:00
build: constify memchr()/strchr()/etc result variables (cont.)
Assisted-by: Rudi Heitbaum Fixes #20420 Follow-up to7dc60bdb90#20425 Follow-up to0e2507a3c6#20421 Closes #20428
This commit is contained in:
parent
6974bd7cc8
commit
4e5908306a
7 changed files with 9 additions and 9 deletions
|
|
@ -1185,7 +1185,7 @@ static CURLUcode updateurl(CURLU *u, const char *cmd, unsigned int setflags)
|
|||
|
||||
/* make sure the last command ends with a comma too! */
|
||||
while(p) {
|
||||
char *e = strchr(p, ',');
|
||||
const char *e = strchr(p, ',');
|
||||
if(e) {
|
||||
size_t n = (size_t)(e - p);
|
||||
char buf[80];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue