Skip to content

Commit bbfaaf3

Browse files
committed
showHelp(): Use one callFunction
1 parent bef3c37 commit bbfaaf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nix/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ static void showHelp(std::vector<std::string> subcommand, NixArgs & toplevel)
256256
vDump->mkString(toplevel.dumpCli());
257257

258258
auto vRes = state.allocValue();
259-
state.callFunction(*vGenerateManpage, state.getBuiltin("false"), *vRes, noPos);
260-
state.callFunction(*vRes, *vDump, *vRes, noPos);
259+
Value * args[]{&state.getBuiltin("false"), vDump};
260+
state.callFunction(*vGenerateManpage, args, *vRes, noPos);
261261

262262
auto attr = vRes->attrs()->get(state.symbols.create(mdName + ".md"));
263263
if (!attr)

0 commit comments

Comments
 (0)