strdup: remove unused variable
authorgit <redacted>
Sat, 2 May 2026 08:37:16 +0000 (04:37 -0400)
committergit <redacted>
Sat, 2 May 2026 08:37:16 +0000 (04:37 -0400)
strdup.h

index 34617eaf4dff42ef26341f5293c134b537e8cb5f..b7f1e3eec9caed5015916183edbd0c12d11d09d7 100644 (file)
--- a/strdup.h
+++ b/strdup.h
@@ -46,10 +46,8 @@ char *i_strndup_(const char *s, size_t n);
 char *
 i_strdup_(const char *s)
 {
-       char *t = s;
-
        /* avoid calling strlen twice by passing the maximum */
-       return i_strndup_(s, ~(size_t) 0);
+       return i_strndup_(s, ~(size_t)0);
 }
 
 char *