From 0459c4ec540563e665b7ce6ded0d5be6db3504b7 Mon Sep 17 00:00:00 2001 From: Mats Erik Andersson Date: Wed, 18 Sep 2013 18:04:26 +0200 Subject: [PATCH] getgroups: statement without effect * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]: Change equality conditional to expected assignment. --- ChangeLog | 6 ++++++ lib/getgroups.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0007e17d0b..2cc6c947b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-09-17 Mats Erik Andersson (tiny change) + + getgroups: statement without effect + * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]: + Change equality conditional to expected assignment. + 2013-09-09 Eric Blake glob: fix compilation diff --git a/lib/getgroups.c b/lib/getgroups.c index 9856adc1a4..e71b5439c7 100644 --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -86,7 +86,7 @@ rpl_getgroups (int n, gid_t *group) } saved_errno = errno; free (gbuf); - errno == saved_errno; + errno = saved_errno; return result; } -- 2.39.5