diff options
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/idvec-impgids.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libshouldbeinlibc/idvec-impgids.c b/libshouldbeinlibc/idvec-impgids.c index 97c849a2..62417e12 100644 --- a/libshouldbeinlibc/idvec-impgids.c +++ b/libshouldbeinlibc/idvec-impgids.c @@ -113,7 +113,11 @@ idvec_merge_implied_gids (struct idvec *gids, const struct idvec *uids) { int i; error_t err = 0; - for (i = 0; i < uids->num && !err; i++) - err = _merge_implied_gids (gids, uids->ids[i]); + for (i = 0; i < uids->num; i++) + { + error_t this_err = _merge_implied_gids (gids, uids->ids[i]); + if (this_err && !err) + err = this_err; + } return err; } |