]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/fb-direct.c
Resources: Allow res_free(NULL) and res_detach(NULL)
[libucw.git] / ucw / fb-direct.c
index 264905792acdf4b7e59aee727be86dc7890199a4..ccdb851b1f492211edd069ee7400cd571e9ebea3 100644 (file)
@@ -308,8 +308,7 @@ fbdir_open_fd_internal(int fd, const char *name, struct asio_queue *q, uns buffe
   f->close = fbdir_close;
   f->config = fbdir_config;
   f->can_overwrite_buffer = 2;
-  fb_tie(f);
-  return f;
+  return fb_tie(f);
 }
 
 #ifdef TEST