From: Jim Meyering Date: Mon, 7 Aug 2000 16:55:57 +0000 (+0000) Subject: (same_name): Invoke xalloc_die instead of printing our own message. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81f3a79231bf3f35f4f4d12deec8b58586984ac8;p=pspp (same_name): Invoke xalloc_die instead of printing our own message. --- diff --git a/lib/same.c b/lib/same.c index dc28c7bdab..beb75c44ed 100644 --- a/lib/same.c +++ b/lib/same.c @@ -45,6 +45,7 @@ extern int errno; #include "same.h" #include "dirname.h" #include "error.h" +#include "xalloc.h" #if ENABLE_NLS # include @@ -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)) {