Skip to content

Commit

Permalink
or...
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 6, 2025
1 parent 43c33f6 commit acb54a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,10 @@ void InitializeGap (
char * argv [],
UInt handleSignals )
{
const int argc = *pargc;

// initialize the basic system and gasman
InitSystem( *pargc, argv, handleSignals );
InitSystem(argc, argv, handleSignals);

// Initialise memory -- have to do this here to make sure we are at top of C stack
InitBags(
Expand All @@ -1454,8 +1456,8 @@ void InitializeGap (
ModulesInitKernel();

// make command line available to GAP level
KernelArgs = NEW_PLIST_IMM(T_PLIST, 16);
for (int i = 0; argv[i]; i++) {
KernelArgs = NEW_PLIST_IMM(T_PLIST, argc);
for (int i = 0; i < argc; i++) {
PushPlist(KernelArgs, MakeImmString(argv[i]));
}

Expand Down

0 comments on commit acb54a5

Please sign in to comment.