Blame SOURCES/0095-upload-don-t-ask-for-password-if-the-env-var-is-empt.patch

562801
From 4827adfe8b6b6c8583d3115f7244ac3b8b87d609 Mon Sep 17 00:00:00 2001
562801
From: Jakub Filak <jfilak@redhat.com>
562801
Date: Wed, 8 Oct 2014 12:26:29 +0200
562801
Subject: [LIBREPORT PATCH 95/97] upload: don't ask for password if the env var
562801
 is empty string
562801
562801
Related to rhbz#1066486
562801
562801
Signed-off-by: Jakub Filak <jfilak@redhat.com>
562801
---
562801
 src/plugins/reporter-upload.c | 2 +-
562801
 1 file changed, 1 insertion(+), 1 deletion(-)
562801
562801
diff --git a/src/plugins/reporter-upload.c b/src/plugins/reporter-upload.c
562801
index f934953..84c827b 100644
562801
--- a/src/plugins/reporter-upload.c
562801
+++ b/src/plugins/reporter-upload.c
562801
@@ -156,7 +156,7 @@ static int create_and_upload_archive(
562801
             /* Load Password only if Username is configured, it doesn't make */
562801
             /* much sense to load Password without Username. */
562801
             state->password = getenv("Upload_Password");
562801
-            if (state->password == NULL && state->password[0] == '\0')
562801
+            if (state->password == NULL)
562801
             {
562801
                 /* Be permissive and nice, ask only once and don't check */
562801
                 /* the result. User can dismiss this prompt but the upload */
562801
-- 
562801
1.8.3.1
562801