Blob Blame History Raw
From 4827adfe8b6b6c8583d3115f7244ac3b8b87d609 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Wed, 8 Oct 2014 12:26:29 +0200
Subject: [LIBREPORT PATCH 95/97] upload: don't ask for password if the env var
 is empty string

Related to rhbz#1066486

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/plugins/reporter-upload.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/reporter-upload.c b/src/plugins/reporter-upload.c
index f934953..84c827b 100644
--- a/src/plugins/reporter-upload.c
+++ b/src/plugins/reporter-upload.c
@@ -156,7 +156,7 @@ static int create_and_upload_archive(
             /* Load Password only if Username is configured, it doesn't make */
             /* much sense to load Password without Username. */
             state->password = getenv("Upload_Password");
-            if (state->password == NULL && state->password[0] == '\0')
+            if (state->password == NULL)
             {
                 /* Be permissive and nice, ask only once and don't check */
                 /* the result. User can dismiss this prompt but the upload */
-- 
1.8.3.1