From d701a5e74ede469ebffa31c5285f74dabd07ab30 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 18 Feb 2013 23:31:35 +1100 Subject: [PATCH 1/1] avoid a probably unwarranted compiler warning --- iolayer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iolayer.c b/iolayer.c index d92748a0..39c8c298 100644 --- a/iolayer.c +++ b/iolayer.c @@ -1187,6 +1187,9 @@ i_io_read_fill(io_glue *ig, ssize_t needed) { 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) { work += rc; good = 1; -- 2.39.2