]> mj.ucw.cz Git - libucw.git/commitdiff
Added work-around for spurious warnings.
authorMartin Mares <mj@ucw.cz>
Sun, 29 May 2005 09:20:34 +0000 (09:20 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 29 May 2005 09:20:34 +0000 (09:20 +0000)
lib/fastbuf.h

index 800794c7ae5669790d5d98eb94468196a38c3892..ea71f1206a38c2e40f915d14db7b44c155ec275a 100644 (file)
@@ -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);
 }