summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 54ca0442c3..1355740cb3 100644
--- a/mg.c
+++ b/mg.c
@@ -1536,7 +1536,8 @@ MAGIC* mg;
break;
gary[i] = I_V(atof(p));
}
- (void)setgroups(i, gary);
+ if (i)
+ (void)setgroups(i, gary);
}
#else /* HAS_SETGROUPS */
egid = SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv);