From 3d144d9e59fced82ed36c0541801950af8a7c14f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 May 2013 23:08:06 +0300 Subject: fix compilation warning. --- src/gui/whoisonline.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/whoisonline.cpp') 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"); -- cgit v1.2.3-70-g09d2