summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/Utils.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-11-13 18:07:48 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-11-13 18:07:48 +0000
commitb236590d991e59ef0f482bf52757efb59588009d (patch)
tree757c3648555b468aec2c2797820c651f4aee0da1 /plugins/NewsAggregator/Src/Utils.cpp
parentdab7b035d265597172485653d7478384a18ec04d (diff)
minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@10981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/Utils.cpp')
-rw-r--r--plugins/NewsAggregator/Src/Utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp
index 1db0e19e4a..68b09039d0 100644
--- a/plugins/NewsAggregator/Src/Utils.cpp
+++ b/plugins/NewsAggregator/Src/Utils.cpp
@@ -85,11 +85,11 @@ void GetNewsData(TCHAR *tszUrl, char **szData, MCONTACT hContact, HWND hwndDlg)
nlhr.headers[2].szValue = "no-cache";
nlhr.headers[3].szName = "Connection";
nlhr.headers[3].szValue = "close";
+ char auth[256];
if (db_get_b(hContact, MODULE, "UseAuth", 0) || IsDlgButtonChecked(hwndDlg, IDC_USEAUTH)) {
nlhr.headersCount++;
nlhr.headers[4].szName = "Authorization";
- char auth[256];
CreateAuthString(auth, hContact, hwndDlg);
nlhr.headers[4].szValue = auth;
}