X-Git-Url: https://git.datadissipation.net/libcext/blobdiff_plain/0cad277d2ed33b008dea56a24a3acb49259c7131..429122ae78262efcb3da5b67d6d746ba93cb209a:/strdup.h 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 *