summaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmalloc.c')
-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);