aboutsummaryrefslogtreecommitdiff
path: root/src/common/fe_memutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/fe_memutils.c')
-rw-r--r--src/common/fe_memutils.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/common/fe_memutils.c b/src/common/fe_memutils.c
index afb42030e7b..bfe79f8e437 100644
--- a/src/common/fe_memutils.c
+++ b/src/common/fe_memutils.c
@@ -49,18 +49,18 @@ pg_malloc0(size_t size)
void *
pg_realloc(void *ptr, size_t size)
{
- void *tmp;
-
- /* Avoid unportable behavior of realloc(NULL, 0) */
- if (ptr == NULL && size == 0)
- size = 1;
- tmp = realloc(ptr, size);
- if (!tmp)
- {
+ void *tmp;
+
+ /* Avoid unportable behavior of realloc(NULL, 0) */
+ if (ptr == NULL && size == 0)
+ size = 1;
+ tmp = realloc(ptr, size);
+ if (!tmp)
+ {
fprintf(stderr, _("out of memory\n"));
exit(EXIT_FAILURE);
- }
- return tmp;
+ }
+ return tmp;
}
/*