summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");