/
index
/
single-header-libcext.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
0cad277
)
strdup: remove unused variable
author
git
<redacted>
Sat, 2 May 2026 08:37:16 +0000
(
04:37
-0400)
committer
git
<redacted>
Sat, 2 May 2026 08:37:16 +0000
(
04:37
-0400)
strdup.h
patch
|
blob
|
history
diff --git
a/strdup.h
b/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 *