[Libguestfs] [PATCH nbdkit 1/6] filters: Add a function to read full extents from a plugin.

Richard W.M. Jones rjones at redhat.com
Wed Feb 3 21:59:34 UTC 2021


On Wed, Feb 03, 2021 at 02:47:23PM -0600, Eric Blake wrote:
> On 1/26/21 3:51 PM, Richard W.M. Jones wrote:
> > + error0:
> > +  if (ret) nbdkit_extents_free (ret);
> 
> nbdkit_extents_free(NULL) is a no-op, do we need the 'if' here?

Oh indeed, I'll push a small follow-up fix, thanks.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list