From: Daniel Stenberg Date: Sat, 20 Apr 2024 21:06:24 +0000 (+0200) Subject: tool_paramhlp: remove duplicate assign X-Git-Tag: curl-8_8_0~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf337d851ae0120ec5ed801ad7eb128561bd8cf6;p=thirdparty%2Fcurl.git tool_paramhlp: remove duplicate assign Spotted by CodeSonar Closes #13433 --- diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index c26f6bbefd..c5128e364f 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -80,7 +80,7 @@ static size_t memcrlf(char *orig, if we count non-CRLF */ size_t max) { - char *ptr = orig; + char *ptr; size_t total = max; for(ptr = orig; max; max--, ptr++) { bool crlf = ISCRLF(*ptr);