From 49af22ca94570da3fa43c98e92ec0830f786db0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Wed, 7 Sep 2016 09:31:43 +0200
Subject: [PATCH] * src/http.c (check_file_output): Replace asprintf by aprint

---
 src/http.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/http.c b/src/http.c
index 3cafd1c4..6ac795bf 100644
--- a/src/http.c
+++ b/src/http.c
@@ -2263,8 +2263,7 @@ check_file_output (struct url *u, struct http_stat *hs,
   hs->temporary = opt.delete_after || opt.spider || !acceptable (hs->local_file);
   if (hs->temporary)
     {
-      char *tmp = NULL;
-      asprintf (&tmp, "%s.tmp", hs->local_file);
+      char *tmp = aprintf ("%s.tmp", hs->local_file);
       xfree (hs->local_file);
       hs->local_file = tmp;
     }