1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00

(same_name): Invoke xalloc_die instead of printing our own message.

This commit is contained in:
Jim Meyering
2000-08-07 16:55:57 +00:00
parent 3190f18d1c
commit 02edb50e8f

View File

@@ -45,6 +45,7 @@ extern int errno;
#include "same.h"
#include "dirname.h"
#include "error.h"
#include "xalloc.h"
#if ENABLE_NLS
# include <libintl.h>
@@ -81,7 +82,7 @@ same_name (const char *source, const char *dest)
source_dirname = dir_name (source);
dest_dirname = dir_name (dest);
if (source_dirname == NULL || dest_dirname == NULL)
error (1, 0, _("virtual memory exhausted"));
xalloc_die ();
if (stat (source_dirname, &source_dir_stats))
{