Mercurial > dovecot > core-2.2
diff src/lib-dict-extra/dict-fs.c @ 20828:d7bed2a85e99
global: Make sure i_stream_read() calls handle 0 and -2 return values correctly.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 06 Oct 2016 13:50:59 +0300 |
parents | ddf54fabf231 |
children | 8b87ae4cd4c3 |
line wrap: on
line diff
--- a/src/lib-dict-extra/dict-fs.c Thu Oct 06 13:39:21 2016 +0300 +++ b/src/lib-dict-extra/dict-fs.c Thu Oct 06 13:50:59 2016 +0300 @@ -93,7 +93,7 @@ file = fs_file_init(dict->fs, fs_dict_get_full_key(dict, key), FS_OPEN_MODE_READONLY); input = fs_read_stream(file, IO_BLOCK_SIZE); - i_stream_read(input); + (void)i_stream_read(input); str = str_new(pool, i_stream_get_data_size(input)+1); while ((ret = i_stream_read_data(input, &data, &size, 0)) > 0) {