acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Acl-devel] [PATCH] Fix minor issues found in getfacl.c


From: Kamil Dudka
Subject: Re: [Acl-devel] [PATCH] Fix minor issues found in getfacl.c
Date: Tue, 08 Sep 2015 14:45:59 +0200
User-agent: KMail/4.14.9 (Linux/4.0.8-304.fc22.x86_64; KDE/4.14.9; x86_64; ; )

On Tuesday 08 September 2015 14:30:15 Andreas Grünbacher wrote:
> Jaska and Kamil,
> 
> 2015-09-08 14:26 GMT+02:00 Kamil Dudka <address@hidden>:
> > On Tuesday 08 September 2015 14:37:56 Jaska Uimonen wrote:
> >> Hi,
> >> 
> >> I was assigned to fix some static analysis issues
> >> in my company. There we're couple identified in acl.
> >> 
> >> These are all in getfacl.c and are quite minor things,
> >> but here they are anyway... they are mainly concerning
> >> not freeing things returned from acl_get_identifier.
> 
> Thanks.
> 
> > Looks good to me.  I would personally prefer explicit type conversion when
> > freeing id_p instead of changing its declaration
> 
> Or making the variable non-const in the first place.

That was already in the original patch by Jaska ;-)

> Also I wouldprefer not to expand the life span of those temporary variables
> too much.

Sounds like a good idea.

> How about the attached fix?

+1

Kamil

> Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]