From: git Date: Sat, 2 May 2026 08:37:16 +0000 (-0400) Subject: strdup: remove unused variable X-Git-Url: https://git.datadissipation.net/?a=commitdiff_plain;h=d18be17151685cdd5a03a17c182f930e49741371;p=single-header-libcext.git strdup: remove unused variable --- diff --git a/strdup.h b/strdup.h index 34617ea..b7f1e3e 100644 --- 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 *