[dovecot/core] 46ce4d: lib: i_stream_get_error() now returns "EOF" if str...

GitHub noreply at github.com
Mon Jan 11 17:02:06 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 46ce4d9273e6df12ef1912bbdb1c8b84b104f394
      https://github.com/dovecot/core/commit/46ce4d9273e6df12ef1912bbdb1c8b84b104f394
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-01-11 (Mon, 11 Jan 2016)

  Changed paths:
    M src/lib/istream.c
    M src/lib/istream.h

  Log Message:
  -----------
  lib: i_stream_get_error() now returns "EOF" if stream_errno==0 and eof==TRUE.

This can be used to replace a lot of code like:

input->stream_errno == 0 ? "EOF" : i_stream_get_error(input)

with simply:

i_stream_get_error(input)




More information about the dovecot-cvs mailing list