summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-28 23:08:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-28 23:08:06 +0300
commit3d144d9e59fced82ed36c0541801950af8a7c14f (patch)
tree79f940374362c8ccbd5cca27f15abc2ef2261dc1
parent8d2659ec0b1fd3695574543d116cb683d3ccacab (diff)
downloadplus-3d144d9e59fced82ed36c0541801950af8a7c14f.tar.gz
plus-3d144d9e59fced82ed36c0541801950af8a7c14f.tar.bz2
plus-3d144d9e59fced82ed36c0541801950af8a7c14f.tar.xz
plus-3d144d9e59fced82ed36c0541801950af8a7c14f.zip
fix compilation warning.
-rw-r--r--src/gui/whoisonline.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index 32846be7e..3e101338e 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -529,7 +529,8 @@ int WhoIsOnline::downloadThread(void *ptr)
// Make sure the resources2.txt and news.txt aren't cached,
// in order to always get the latest version.
- struct curl_slist *pHeaders = curl_slist_append(
+ struct curl_slist *pHeaders = nullptr;
+ pHeaders = curl_slist_append(
pHeaders, "pragma: no-cache");
pHeaders = curl_slist_append(pHeaders,
"Cache-Control: no-cache");