hook_version and hook_type are unsigned so use 0, not -1 in the

final (empty) entry.  Quiets a warning on Solaris Studio 12.2.
This commit is contained in:
Todd C. Miller
2016-03-16 10:53:43 -06:00
parent 48dff84081
commit c5cafb4331

View File

@@ -819,7 +819,7 @@ static struct sudo_hook sudoers_hooks[] = {
{ SUDO_HOOK_VERSION, SUDO_HOOK_UNSETENV, sudoers_hook_unsetenv, NULL },
{ SUDO_HOOK_VERSION, SUDO_HOOK_GETENV, sudoers_hook_getenv, NULL },
{ SUDO_HOOK_VERSION, SUDO_HOOK_PUTENV, sudoers_hook_putenv, NULL },
{ -1, -1, NULL, NULL }
{ 0, 0, NULL, NULL }
};
/*