aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/filetransfer.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-03 11:11:16 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-03-03 11:11:16 +0100
commit609779086301a600f4282a629d586bba6b6a485c (patch)
tree0f29dd18b05d3c75cb9b5f6f94d7b3807aeea087 /src/libstore/filetransfer.cc
parent885d709393caabd346299c6d6ec8ea57b8a11628 (diff)
Fix segfault in headerCallback()
https://hydra.nixos.org/build/168594664
Diffstat (limited to 'src/libstore/filetransfer.cc')
-rw-r--r--src/libstore/filetransfer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index 255b42c49..c46262299 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -197,7 +197,7 @@ struct curlFileTransfer : public FileTransfer
result.etag = "";
result.data.clear();
result.bodySize = 0;
- statusMsg = trim((std::string &) match[1]);
+ statusMsg = trim(match.str(1));
acceptRanges = false;
encoding = "";
} else {