aboutsummaryrefslogtreecommitdiff
path: root/src/nix-channel
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/nix-channel
parent885d709393caabd346299c6d6ec8ea57b8a11628 (diff)
Fix segfault in headerCallback()
https://hydra.nixos.org/build/168594664
Diffstat (limited to 'src/nix-channel')
-rwxr-xr-xsrc/nix-channel/nix-channel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-channel/nix-channel.cc b/src/nix-channel/nix-channel.cc
index f46b90b90..cf52b03b4 100755
--- a/src/nix-channel/nix-channel.cc
+++ b/src/nix-channel/nix-channel.cc
@@ -96,7 +96,7 @@ static void update(const StringSet & channelNames)
std::smatch match;
auto urlBase = std::string(baseNameOf(url));
if (std::regex_search(urlBase, match, std::regex("(-\\d.*)$")))
- cname = cname + (std::string) match[1];
+ cname = cname + match.str(1);
std::string extraAttrs;