Fix test-auxval typos hidden by platform dependence

This commit is contained in:
Viktor Dukhovni
2017-05-26 23:26:48 -04:00
committed by Nico Williams
parent 122cdc578e
commit 2d968c5c88

View File

@@ -49,8 +49,8 @@ check_secure_getenv(char **env)
size_t i;
char *v;
for (i = 0; environ[i] != NULL; i++) {
if (strchr(environ[i], '=') == NULL)
for (i = 0; env[i] != NULL; i++) {
if (strchr(env[i], '=') == NULL)
continue;
if ((v = strdup(env[i])) == NULL)
err(1, "could not allocate copy of %s", env[i]);
@@ -103,7 +103,7 @@ inject_suid(int suid)
return;
#else
warnx(1, "No ELF auxv types to inject");
warnx("No ELF auxv types to inject");
#endif
}