Add function name to "unable to allocate memory" warnings.

This commit is contained in:
Todd C. Miller
2015-06-19 14:51:17 -06:00
parent dc883f2454
commit c36415417f
37 changed files with 137 additions and 134 deletions

View File

@@ -106,7 +106,8 @@ oom:
free(debug_file->debug_flags);
free(debug_file);
}
sudo_warnx_nodebug(U_("unable to allocate memory"));
sudo_warnx_nodebug(U_("%s: %s"), "sudoers_debug_parse_flags",
U_("unable to allocate memory"));
return false;
}