aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-12-11 14:53:30 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-12-11 14:53:30 +0100
commitecb3a1afa2395c46c4ba2ec9da550f45414dbe6d (patch)
tree6d1038ee909bd1ba69948a0bc326cd5ba6824e01 /src/nix/main.cc
parentab88f4bbd4117db458a79f0a02a4de7bf7931f4c (diff)
parentf800d450b78091835ab7ca67847d76e75d877a24 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r--src/nix/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index 272c944ba..f0e6cac4c 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -140,7 +140,7 @@ void mainWrapped(int argc, char * * argv)
initGC();
programPath = argv[0];
- string programName = baseNameOf(programPath);
+ auto programName = std::string(baseNameOf(programPath));
{
auto legacy = (*RegisterLegacyCommand::commands)[programName];