Branch: Tag:

2022-04-17

2022-04-17 09:53:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.Buffer: read_buffer() now propagates the error mode.

620:       to->buffer = io_read_pointer(io);    to->len = len; +  to->error_mode = io->error_mode; +  if (to->error_mode) add_ref(to->error_mode);       io_consume( io, len );   
2930:    EXIT {    Buffer *this = THIS;    io_unlink_external_storage( this ); -  if( this->error_mode ) +  if( this->error_mode ) {    free_program( this->error_mode ); -  +  this->error_mode = NULL; +  }    if( this->allocated )    free( this->buffer );    }