From dcc2bd8913d3741614e971b0be12f490d8334538 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 4 Jun 2014 15:22:11 +0800 Subject: [PATCH] discover/paths: Fix wget command with https and !DEBUG When DEBUG is undefed, we run out of wget arguments for loading https URLs. We need an extra element in the argv array to handle all possible arguments. Signed-off-by: Jeremy Kerr --- discover/paths.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/discover/paths.c b/discover/paths.c index 54774cf..0d414eb 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -310,8 +310,9 @@ static void load_wget(struct load_task *task, int flags) pb_system_apps.wget, "-O", NULL, /* 2: local file */ - NULL, - NULL, + NULL, /* 3 (optional): --quiet */ + NULL, /* 4 (optional): --no-check-certificate */ + NULL, /* 5: URL */ NULL, }; int i; -- 2.39.2