summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-16 19:46:33 +0100
committerFelix Fietkau <nbd@openwrt.org>2016-01-16 19:46:37 +0100
commita7bfe2ff1df0743b3c34d78b14eb8b5c6b239a40 (patch)
tree0e9a9e29d4988a3b60e81596d9caa1f37af149bb
parentb99c7ce8573f8650c4cafdc23ac7f44da46f4927 (diff)
downloaduclient-a7bfe2ff1df0743b3c34d78b14eb8b5c6b239a40.tar.gz
uclient-http: make username/password variables local
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--uclient-fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c
index fa60eb3..f0f3dab 100644
--- a/uclient-fetch.c
+++ b/uclient-fetch.c
@@ -50,8 +50,6 @@ static const char *output_file;
static int output_fd = -1;
static int error_ret;
static int out_bytes;
-static char *username;
-static char *password;
static char *auth_str;
static char **urls;
static int n_urls;
@@ -434,6 +432,8 @@ static const struct option longopts[] = {
int main(int argc, char **argv)
{
const char *progname = argv[0];
+ char *username = NULL;
+ char *password = NULL;
struct uclient *cl;
int longopt_idx = 0;
bool has_cert = false;