Branch: Tag:

2000-11-03

2000-11-03 14:48:57 by Leif Stensson <leif@lysator.liu.se>

Changed three references to the undefined variable "to" to refer to
the unused argument "newval", which is probably what was intended.
Without this patch, Roxen 2.2 refused to start, giving a long list
of errors due to the inability to compile Roxen.pmod. I wonder if
this breaks something else...? At least Roxen seems to start alright
now.

Rev: server/etc/modules/Roxen.pmod:1.48

1:   /* -  * $Id: Roxen.pmod,v 1.47 2000/11/02 17:20:08 per Exp $ +  * $Id: Roxen.pmod,v 1.48 2000/11/03 14:48:57 leif Exp $    *    * Various helper functions.    *
1117:    || ((ind < 0) && (-ind > sizeof( var ) )) )    RXML.parse_error( "Array not big enough for index %d.\n", ind );    else if( ind < 0 ) -  var[ind] = to; +  var[ind] = newval;    else -  var[ind-1] = to; +  var[ind-1] = newval;    else    RXML.parse_error( "Cannot index array with %O\n", ind );    RXML.get_context()->id->variables[name] = ((array(string))var)*"\0"; -  return to; +  return newval;    }       mixed `[]( string index )