2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

simplify iterator

This commit is contained in:
Todd C. Miller
2018-02-10 04:29:43 -07:00
parent 6e2a267060
commit 34820c6b15
4 changed files with 10 additions and 15 deletions

View File

@@ -1409,12 +1409,11 @@ sudo_sss_display_bound_defaults(struct sudo_nss *nss,
}
static char *
val_array_iter(void *base, void **save)
val_array_iter(void **vp)
{
char **val_array;
char **val_array = *vp;
val_array = *save ? *save : base;
*save = val_array + 1;
*vp = val_array + 1;
return *val_array;
}