mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
.data() -> .c_str() to be on the safe side
This commit is contained in:
parent
66bd1b0298
commit
7c6f093abc
1 changed files with 2 additions and 2 deletions
|
@ -603,7 +603,7 @@ struct CmdDevelop : Common, MixEnvironment
|
||||||
|
|
||||||
setEnviron();
|
setEnviron();
|
||||||
// prevent garbage collection until shell exits
|
// prevent garbage collection until shell exits
|
||||||
setenv("NIX_GCROOT", gcroot.data(), 1);
|
setenv("NIX_GCROOT", gcroot.c_str(), 1);
|
||||||
|
|
||||||
Path shell = "bash";
|
Path shell = "bash";
|
||||||
|
|
||||||
|
@ -648,7 +648,7 @@ struct CmdDevelop : Common, MixEnvironment
|
||||||
|
|
||||||
// Override SHELL with the one chosen for this environment.
|
// Override SHELL with the one chosen for this environment.
|
||||||
// This is to make sure the system shell doesn't leak into the build environment.
|
// This is to make sure the system shell doesn't leak into the build environment.
|
||||||
setenv("SHELL", shell.data(), 1);
|
setenv("SHELL", shell.c_str(), 1);
|
||||||
|
|
||||||
// If running a phase or single command, don't want an interactive shell running after
|
// If running a phase or single command, don't want an interactive shell running after
|
||||||
// Ctrl-C, so don't pass --rcfile
|
// Ctrl-C, so don't pass --rcfile
|
||||||
|
|
Loading…
Reference in a new issue