No need to translate "unable to allocate memory" when we can just

use the system translation via strerror().
This commit is contained in:
Todd C. Miller
2012-09-17 16:59:26 -04:00
parent f808fead0a
commit 1d90c0ad71
9 changed files with 28 additions and 26 deletions

View File

@@ -109,7 +109,7 @@ disable_execute(char *const envp[])
preload = fmt_string(RTLD_PRELOAD_VAR, sudo_conf_noexec_path());
# endif
if (preload == NULL)
errorx(1, _("unable to allocate memory"));
errorx(1, NULL);
nenvp[env_len++] = preload;
nenvp[env_len] = NULL;
} else {