diff --git a/src/plugins/rx3270/rexx_methods.cc b/src/plugins/rx3270/rexx_methods.cc index e81ae54..a7b1767 100644 --- a/src/plugins/rx3270/rexx_methods.cc +++ b/src/plugins/rx3270/rexx_methods.cc @@ -44,11 +44,13 @@ /*--[ Implement ]------------------------------------------------------------------------------------*/ -RexxMethod1(int, rx3270_method_init, CSTRING, type) +RexxMethod1(int, rx3270_method_init, OPTIONAL_CSTRING, type) { // Set session class in rexx object try { + if(!(type && *type)) + type = ""; RexxPointerObject sessionPtr = context->NewPointer(session::create(type)); context->SetObjectVariable("CSELF", sessionPtr); } -- libgit2 0.21.2