Mercurial > hg > octave-nkf > gnulib-hg
diff lib/same.c @ 2809:53d24b96c7f1
(same_name): Invoke xalloc_die instead of printing our own message.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 07 Aug 2000 16:55:57 +0000 (2000-08-07) |
parents | db2d95fa362f |
children | ad2f40119c24 |
line wrap: on
line diff
--- a/lib/same.c +++ b/lib/same.c @@ -45,6 +45,7 @@ #include "same.h" #include "dirname.h" #include "error.h" +#include "xalloc.h" #if ENABLE_NLS # include <libintl.h> @@ -81,7 +82,7 @@ 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)) {