summaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-01 16:22:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-10-01 16:22:29 +0300
commit74c4c95976238570f1d9d52d139da47a4719a598 (patch)
tree25ace91c07b511e635a82d621ab848cb2156aec0 /src/url.c
parent2721772488e2e22ac53bb5712d736644a96b9569 (diff)
downloadapk-tools-74c4c95976238570f1d9d52d139da47a4719a598.tar.gz
apk-tools-74c4c95976238570f1d9d52d139da47a4719a598.tar.bz2
apk-tools-74c4c95976238570f1d9d52d139da47a4719a598.tar.xz
apk-tools-74c4c95976238570f1d9d52d139da47a4719a598.zip
db, url: fix exec sentinels
http://ewontfix.com/11/
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/url.c b/src/url.c
index 974fc54..6c62c95 100644
--- a/src/url.c
+++ b/src/url.c
@@ -70,11 +70,11 @@ static int fork_wget(const char *url, pid_t *ppid)
close(fds[0]);
dup2(open("/dev/null", O_RDONLY), STDIN_FILENO);
dup2(fds[1], STDOUT_FILENO);
- execlp("wget", "wget", "-q", "-O", "-", url, NULL);
+ execlp("wget", "wget", "-q", "-O", "-", url, (void*) 0);
/* fall back to busybox wget
* See http://redmine.alpinelinux.org/issues/347
*/
- execlp("busybox", "wget", "-q", "-O", "-", url, NULL);
+ execlp("busybox", "wget", "-q", "-O", "-", url, (void*) 0);
exit(0);
}