From: <bi...@us...> - 2009-07-27 20:15:20
|
Revision: 5023 http://oorexx.svn.sourceforge.net/oorexx/?rev=5023&view=rev Author: bigrixx Date: 2009-07-27 20:15:09 +0000 (Mon, 27 Jul 2009) Log Message: ----------- Fix null commandline argument problem Modified Paths: -------------- main/trunk/interpreter/api/InterpreterAPI.cpp Modified: main/trunk/interpreter/api/InterpreterAPI.cpp =================================================================== --- main/trunk/interpreter/api/InterpreterAPI.cpp 2009-07-27 19:53:37 UTC (rev 5022) +++ main/trunk/interpreter/api/InterpreterAPI.cpp 2009-07-27 20:15:09 UTC (rev 5023) @@ -127,7 +127,8 @@ short * retcode, /* Integer form of result */ PRXSTRING result) /* Result returned from program */ { - if (calltype == RXCOMMAND && argcount == 1 && arglist[0].strptr != NULL && StringUtil::caselessCompare(arglist[0].strptr, "//T", arglist[0].strlength) == 0) + if (calltype == RXCOMMAND && argcount == 1 && arglist[0].strptr != NULL && arglist[0].strlength > 0 && + StringUtil::caselessCompare(arglist[0].strptr, "//T", arglist[0].strlength) == 0) { TranslateDispatcher arguments; arguments.programName = programname; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |