Branch: Tag:

2014-10-02

2014-10-02 19:48:52 by Martin Nilsson <nilsson@opera.com>

io_rewind is already applied in io_call_write. Don't do it again in output_to.

1: + /* -*- c -*- + || This file is part of Pike. For copyright information see COPYRIGHT. + || Pike is distributed under GPL, LGPL and MPL. See the file COPYING + || for more information. + */ +    #include "global.h"   #include "fdlib.h"   #include "pike_netlib.h"
1024:    ptrdiff_t wr = io_call_write( io, f, rd );    if( wr <= 0 )    { -  io_rewind(io, rd ); +     if (!written) written = -1;    break;    }    written += wr;    if( wr < 4096 ) { -  io_rewind(io, rd-wr ); +     break;    }    }