]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_paramhlp: remove duplicate assign
authorDaniel Stenberg <daniel@haxx.se>
Sat, 20 Apr 2024 21:06:24 +0000 (23:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 21 Apr 2024 08:51:12 +0000 (10:51 +0200)
Spotted by CodeSonar

Closes #13433

src/tool_paramhlp.c

index c26f6bbefd775ce86096602f5a78b8fcec5d01ea..c5128e364ffb85e5947f125014271b7426d2d2e6 100644 (file)
@@ -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);