about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21T16·35+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-21T16·35+0200
commite19c90fc6b319cb3bb6fbb9a88524dcc7bcbd0aa (patch)
tree8127b0cfe7151334f5008b746c97048a94da7761
parentea8e8df6c783fd9c0185d31ffca4e518a43fe247 (diff)
Fix random failures caused by CurlDownloader modifying a shared string
-rw-r--r--src/libstore/download.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index 6e39330e40d9..04a2b325c651 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -157,7 +157,7 @@ struct CurlDownloader : public Downloader
             curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
         }
 
-        data->clear();
+        data = make_ref<std::string>();
 
         if (requestHeaders) {
             curl_slist_free_all(requestHeaders);