From: Martin Mares Date: Sun, 29 May 2005 09:20:34 +0000 (+0000) Subject: Added work-around for spurious warnings. X-Git-Tag: holmes-import~776 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0694dbcb2739fc128cf42f39b41234810fae739f;p=libucw.git Added work-around for spurious warnings. --- 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); }