Skip to content

Commit a0805c8

Browse files
author
Fernando Alvarruiz
committed
Set base nargin of embedded interpreter to zero (bug #67070).
* interpreter.cc (interpreter::interpreter): Set base nargin of embedded interpreter to zero. (grafted from aa4db32f07d22f5dc06c6d3f28701af204683ea4)
1 parent 72742d8 commit a0805c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libinterp/corefcn/interpreter.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@ interpreter::interpreter (application *app_context)
601601
if (! texi_macros_file.empty ())
602602
Ftexi_macros_file (*this, ovl (texi_macros_file));
603603
}
604+
else
605+
// No arguments for embedded interpreters
606+
intern_nargin (0);
604607

605608
// FIXME: we defer creation of the gh_manager object because it
606609
// creates a root_figure object that requires the display_info

0 commit comments

Comments
 (0)