Author Topic: ScriptBasic bug  (Read 23124 times)

RONB

  • Guest
ScriptBasic bug
« on: October 18, 2013, 04:29:06 PM »
John, 'I found my first ScriptBasic bug after managing the project since 2006.'

http://www.scriptbasic.org/forum/index.php/topic,291.msg1163/topicseen.html#msg1163

It is simply removing the "else" from the code and this way the ParameterArray variables always get NULLified.

-------
else{
    /* If the array is long enough then delete the previous result otherwise
       fake data may remain in it and it may cause trouble. */
    for( i=0 ; i < pLastResult->cArraySize ; i++ ){
      pLastResult->pcbParameterArray = 0;
      pLastResult->ParameterArray = NULL;
      }
    }
--------
I would like to recompile my version for Debian 7 32 bit. What exactly is removed from the commands/string.c file. Have I chosen the correct section of code? Thanks

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: ScriptBasic bug
« Reply #1 on: October 18, 2013, 09:40:12 PM »
Hi Ron,

Attached is the string.c with Peter's correction.

« Last Edit: October 19, 2013, 02:52:06 PM by support »