From cf337d851ae0120ec5ed801ad7eb128561bd8cf6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 20 Apr 2024 23:06:24 +0200 Subject: [PATCH] tool_paramhlp: remove duplicate assign Spotted by CodeSonar Closes #13433 --- src/tool_paramhlp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3