Re: [netlabs #470] io.ops and all io routines in core.ops bomb on NULL strings
At 10:17 AM 3/29/2002 -0800, Steve Fink wrote: >For example: > > op puts(in STR) { > if (($1) && string_length($1)) { > PIO_write(interpreter, PIO_STDOUT(interpreter), ($1)->bufstart, > string_length($1)); > } > goto NEXT(); > } > >Everywhere else t
[netlabs #470] io.ops and all io routines in core.ops bomb on NULL strings
For example: op puts(in STR) { if (($1) && string_length($1)) { PIO_write(interpreter, PIO_STDOUT(interpreter), ($1)->bufstart, string_length($1)); } goto NEXT(); } Everywhere else the code treats NULL as if it were the empty string.