On 04/25/2012 06:16 AM, Ivana Hutarova Varekova wrote:
> this patch fixes two earings in tools-common.c in function parse_uid_gid:
> 
> tools-common.c: In function ‘parse_uid_gid’:
> tools-common.c:280:5: warning: ‘pwd_string’ may be used uninitialized in this 
> function [-Wuninitialized]
> tools-common.c:291:7: warning: ‘grp_string’ may be used uninitialized in this 
> function [-Wuninitialized]
> 
> Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com>
Acked-By: Jan Safranek <jsafr...@redhat.com>

> ---
> 
>  src/tools/tools-common.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/src/tools/tools-common.c b/src/tools/tools-common.c
> index c763ad6..f12363f 100644
> --- a/src/tools/tools-common.c
> +++ b/src/tools/tools-common.c
> @@ -263,7 +263,8 @@ err:
>  int parse_uid_gid(char *string, uid_t *uid, gid_t *gid,
>               const char *program_name)
>  {
> -     char *grp_string, *pwd_string;
> +     char *grp_string = NULL;
> +     char *pwd_string = NULL;
>       struct passwd *pwd;
>       struct group *grp;
>  
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Libcg-devel mailing list
> Libcg-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libcg-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to