summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2023-10-30 16:14:28 +0100
committerpgen <p.gen.progs@gmail.com>2023-10-30 16:14:28 +0100
commit0733be2ea771987a3e06ceb574eabad53d40ffa1 (patch)
treece35493bde50dbd3ace7aab97739dad335ccb231
parent622aa004d064104d538ad52d3515167b63b7c907 (diff)
Remove an unused variable definition
-rw-r--r--xmalloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmalloc.c b/xmalloc.c
index e7f7896..df00249 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -153,8 +153,7 @@ xstrdup(const char *str)
char *
xstrndup(const char *str, size_t len)
{
- char *p;
- size_t l;
+ char *p;
p = memchr(str, '\0', len);