Skip rename() on NULL destfile in curl_download_internal()
commit9cddc4ad80dbb52e30cdbcd168a4c19b73e30bbe
authorLukas Fleischer <archlinux@cryptocrack.de>
Wed, 17 Aug 2011 14:45:35 +0000 (17 16:45 +0200)
committerDan McGee <dan@archlinux.org>
Wed, 17 Aug 2011 22:30:41 +0000 (17 17:30 -0500)
tree8c9db6092fb018a10bb86733559489ad91b23424
parent3ceef97799da9ec938dbade9e08e624ebb5fcea7
Skip rename() on NULL destfile in curl_download_internal()

Avoid a potential segfault that may occur if we use a temporary file and
fail to build the destination file name from the effective URL.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c