summaryrefslogtreecommitdiff
path: root/request.c
diff options
context:
space:
mode:
authorthe xhr <xhr@giessen.ccc.de>2021-08-25 14:04:07 +0200
committerthe xhr <xhr@giessen.ccc.de>2021-08-25 14:04:07 +0200
commitcebc5223abdec2d1d1862960ff0c473850eba134 (patch)
tree00cd16a2fea8c48e1b7a5f40b46d4501fa1ee4f9 /request.c
parent603332391cfd7951818975b787b57c38a3ce46d0 (diff)
Replace malloc() in xmalloc() with calloc()
so that all memory get zero'ed out at allocation time. Remove a then useless memset
Diffstat (limited to 'request.c')
-rw-r--r--request.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/request.c b/request.c
index 609f368..1cc20ca 100644
--- a/request.c
+++ b/request.c
@@ -39,8 +39,6 @@ uridecode(const char *request)
const char *p;
char *pt;
- memset(temp, 0, strlen(request)+1);
-
p = request;
pt = temp;
generated by cgit on OpenBSD