Skip to content

Commit

Permalink
avoid a probably unwarranted compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Feb 18, 2013
1 parent 41125e7 commit d701a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iolayer.c
Expand Up @@ -1187,6 +1187,9 @@ i_io_read_fill(io_glue *ig, ssize_t needed) {
work = ig->buffer; work = ig->buffer;
} }


/* there should always be buffer space the first time around, but
avoid a compiler warning here */
rc = -1;
while (work < buf_end && (rc = i_io_raw_read(ig, work, buf_end - work)) > 0) { while (work < buf_end && (rc = i_io_raw_read(ig, work, buf_end - work)) > 0) {
work += rc; work += rc;
good = 1; good = 1;
Expand Down

0 comments on commit d701a5e

Please sign in to comment.