diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index a41d9d801..e957f8aba 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -538,7 +538,7 @@ sudoers_policy_main(int argc, char * const argv[], char *env_add[], easprintf(&command_info[info_len++], "runas_gid=%u", runas_pw->pw_gid); } if (def_preserve_groups) { - command_info[info_len++], "preserve_groups=true"; + command_info[info_len++] = "preserve_groups=true"; } else { /* XXX - what about when runas user has no passwd entry? */ #ifdef HAVE_GETGRSET