Skip to content

Commit cc7de70

Browse files
author
Giloo
committed
plain_args must be filled only if NOT NULL PTR!!
1 parent 65a3ecd commit cc7de70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/export.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,7 @@ DLL_PUBLIC int GDL_CDECL IDL_KWProcessByOffset(int argc, EXPORT_VPTR *argv, cha
22632263
TRACE_ROUTINE(__FUNCTION__, __FILE__, __LINE__)
22642264
static const int NoClean = 0;
22652265
// this is always true with GDL:
2266-
for (auto i = 0; i < argc; ++i) plain_args[i] = argv[i];
2266+
if (plain_args) for (auto i = 0; i < argc; ++i) plain_args[i] = argv[i];
22672267
//argk is a pointer to a GDL_PASS_KEYWORDS_LIST struct
22682268
GDL_PASS_KEYWORDS_LIST* container = (GDL_PASS_KEYWORDS_LIST*) argk_passed;
22692269
int npassed = 0;

0 commit comments

Comments
 (0)