From 0694dbcb2739fc128cf42f39b41234810fae739f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 29 May 2005 09:20:34 +0000 Subject: [PATCH] Added work-around for spurious warnings. --- lib/fastbuf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/fastbuf.h b/lib/fastbuf.h index 800794c7..ea71f120 100644 --- a/lib/fastbuf.h +++ b/lib/fastbuf.h @@ -373,7 +373,10 @@ static inline uns bdirect_read_prepare(struct fastbuf *f, byte **buf) { if (f->bptr == f->bstop && !f->refill(f)) - return 0; + { + *buf = NULL; // This is not needed, but it helps to get rid of spurious warnings + return 0; + } *buf = f->bptr; return bavailr(f); } -- 2.39.2