mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-03 19:12:42 +03:00
(xstrndup): Invoke xalloc_die instead of printing our own message.
This commit is contained in:
@@ -126,7 +126,7 @@ xstrndup (const char *s, size_t n)
|
||||
{
|
||||
char *new = strndup (s, n);
|
||||
if (new == NULL)
|
||||
error (EXIT_FAILURE, 0, _("virtual memory exhausted"));
|
||||
xalloc_die ();
|
||||
return new;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user