]> mj.ucw.cz Git - libucw.git/commitdiff
Null fastbuf: Don't forget to set a fastbuf's name.
authorPavel Charvat <pchar@ucw.cz>
Thu, 15 May 2014 07:12:53 +0000 (09:12 +0200)
committerPavel Charvat <pchar@ucw.cz>
Thu, 15 May 2014 07:12:53 +0000 (09:12 +0200)
ucw/fb-null.c

index 6f0a40a217ba74df600a9186bcfb46a617d0a96a..8edc5a4d523e4b96cfc14361f4d791f1de2be4d4 100644 (file)
@@ -21,6 +21,7 @@ struct fastbuf *fbnull_open(uns bufsize)
 {
   struct fastbuf *b = xmalloc(sizeof(*b) + bufsize);
   bzero(b, sizeof(*b));
+  b->name = "<fbnull>";
   b->close = fbnull_close;
   fbnull_start(b, (byte *)(b + 1), bufsize);
   return b;