diff options
Diffstat (limited to 'src/bin/pg_dump/dumpmem.c')
-rw-r--r-- | src/bin/pg_dump/dumpmem.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/bin/pg_dump/dumpmem.c b/src/bin/pg_dump/dumpmem.c index a71e217b702..570b68021b6 100644 --- a/src/bin/pg_dump/dumpmem.c +++ b/src/bin/pg_dump/dumpmem.c @@ -1,8 +1,7 @@ /*------------------------------------------------------------------------- * * dumpmem.c - * memory routines used by pg_dump and pg_restore (but not pg_dumpall - * because there is no failure location to report). + * Memory allocation routines used by pg_dump, pg_dumpall, and pg_restore * * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California @@ -14,16 +13,15 @@ *------------------------------------------------------------------------- */ #include "postgres_fe.h" + #include "dumputils.h" #include "dumpmem.h" -#include <ctype.h> /* * Safer versions of some standard C library functions. If an - * out-of-memory condition occurs, these functions will bail out - * safely; therefore, their return value is guaranteed to be non-NULL. - * We also report the program name and close the database connection. + * out-of-memory condition occurs, these functions will bail out via exit(); + *therefore, their return value is guaranteed to be non-NULL. */ char * @@ -57,7 +55,7 @@ pg_calloc(size_t nmemb, size_t size) tmp = calloc(nmemb, size); if (!tmp) - exit_horribly(NULL, _("out of memory\n")); + exit_horribly(NULL, "out of memory\n"); return tmp; } @@ -68,6 +66,6 @@ pg_realloc(void *ptr, size_t size) tmp = realloc(ptr, size); if (!tmp) - exit_horribly(NULL, _("out of memory\n")); + exit_horribly(NULL, "out of memory\n"); return tmp; } |