From: Mats Erik Andersson Date: Wed, 18 Sep 2013 16:04:26 +0000 (+0200) Subject: getgroups: statement without effect X-Git-Tag: v0.1~47 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=0459c4ec540563e665b7ce6ded0d5be6db3504b7 getgroups: statement without effect * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]: Change equality conditional to expected assignment. --- diff --git a/ChangeLog b/ChangeLog index 0007e17d0..2cc6c947b 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 9856adc1a..e71b5439c 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; }