[PATCH libX11] XFree will accept NULL as argument

Pekka Paalanen ppaalanen at gmail.com
Tue Aug 16 14:49:24 UTC 2016


On Tue, 16 Aug 2016 11:56:50 +0100
Eric Engestrom <eric.engestrom at imgtec.com> wrote:

> On Mon, Aug 15, 2016 at 07:18:14PM +0200, walter harms wrote:
> > since Xfree is a define for free()
> >   Xlibint.h:#define Xfree(ptr) free((ptr))
> > 
> > Xfree will accept NULL and do nothing.
> > 
> > the patch is also available on github.com/xtforever/libX11.git
> > 
> > ---
> >  man/XFree.man | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/man/XFree.man b/man/XFree.man
> > index ffc513b..72674a5 100644
> > --- a/man/XFree.man
> > +++ b/man/XFree.man
> > @@ -90,8 +90,9 @@ Specifies the data that are to be freed.
> >  The
> >  .ZN XFree
> >  function is a general-purpose Xlib routine that frees the specified data.
> > -You must use it to free any objects that were allocated by Xlib,
> > +You must use it to free any objects that were allocated by Xlib,  
> 
> What's the change here?

It adds trailing whitespace.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160816/e6859375/attachment.sig>


More information about the xorg-devel mailing list