For discussion of Alpine Linux development and developer support

1

[alpine-devel] [PATCH] abuild-sudo: remove unused variable

Robert Hencke
Details
Message ID
<20190222155001.99946-1-robert.hencke@gmail.com>
Sender timestamp
1550850601
DKIM signature
missing
Download raw message
Patch: +1 -1
This prevents clang from issuing a warning here.
---
 abuild-sudo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/abuild-sudo.c b/abuild-sudo.c
index 3afd887..80ceb8d 100644
--- a/abuild-sudo.c
+++ b/abuild-sudo.c
@@ -50,7 +50,7 @@ int is_in_group(gid_t group)
 {
 	int ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
 	gid_t *buf = malloc(ngroups_max * sizeof(gid_t));
-	int ngroups, ret = 0;
+	int ngroups;
 	int i;
 	if (buf == NULL) {
 		perror("malloc");
-- 
2.17.2 (Apple Git-113)



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa
Details
Message ID
<20190314154653.24b0de7c@ncopa-desktop.copa.dup.pw>
In-Reply-To
<20190222155001.99946-1-robert.hencke@gmail.com> (view parent)
Sender timestamp
1552574813
DKIM signature
missing
Download raw message
On Fri, 22 Feb 2019 10:50:01 -0500
Robert Hencke <robert.hencke@gmail.com> wrote:

> This prevents clang from issuing a warning here.
> ---
>  abuild-sudo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/abuild-sudo.c b/abuild-sudo.c
> index 3afd887..80ceb8d 100644
> --- a/abuild-sudo.c
> +++ b/abuild-sudo.c
> @@ -50,7 +50,7 @@ int is_in_group(gid_t group)
>  {
>  	int ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
>  	gid_t *buf = malloc(ngroups_max * sizeof(gid_t));
> -	int ngroups, ret = 0;
> +	int ngroups;
>  	int i;
>  	if (buf == NULL) {
>  		perror("malloc");

applied. thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---