From 2a7b8fac9662a912a01895e56539cdf1aef8b378 Mon Sep 17 00:00:00 2001
From: michael-grunder <michael.grunder@gmail.com>
Date: Tue, 2 Apr 2024 14:11:16 -0700
Subject: [PATCH] Remove dead assignment in sdstrim.

The assignment is harmless but causes noise in static analysers
---
 sds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sds.c b/sds.c
index 21ecec04e..c0388bdd5 100644
--- a/sds.c
+++ b/sds.c
@@ -692,10 +692,10 @@ sds sdscatfmt(sds s, char const *fmt, ...) {
  * Output will be just "Hello World".
  */
 sds sdstrim(sds s, const char *cset) {
-    char *start, *end, *sp, *ep;
+    char *end, *sp, *ep;
     size_t len;
 
-    sp = start = s;
+    sp = s;
     ep = end = s+sdslen(s)-1;
     while(sp <= end && strchr(cset, *sp)) sp++;
     while(ep > sp && strchr(cset, *ep)) ep--;