Skip to content

Commit

Permalink
Improve the assertion.
Browse files Browse the repository at this point in the history
Co-authored-by: Serhiy Storchaka <[email protected]>
  • Loading branch information
gpshead and serhiy-storchaka authored Dec 4, 2023
1 parent 84d060f commit 52a475c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_posixsubprocess.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ child_exec(char *const exec_array[],

#ifdef HAVE_SETGROUPS
if (extra_group_size >= 0) {
assert((extra_group_size == 0 && extra_groups == NULL) || extra_group_size);
assert((extra_group_size == 0) == (extra_groups == NULL));
POSIX_CALL(setgroups(extra_group_size, extra_groups));
}
#endif /* HAVE_SETGROUPS */
Expand Down

0 comments on commit 52a475c

Please sign in to comment.