aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/fe_memutils.c20
-rw-r--r--src/common/relpath.c5
2 files changed, 12 insertions, 13 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;
}
/*
diff --git a/src/common/relpath.c b/src/common/relpath.c
index 18fe4d1fe36..52f6b751e3b 100644
--- a/src/common/relpath.c
+++ b/src/common/relpath.c
@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
* relpath.c
- * Shared frontend/backend code to find out pathnames of relation files
+ * Shared frontend/backend code to find out pathnames of relation files
*
* Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * src/common/relpath.c
+ * src/common/relpath.c
*
*-------------------------------------------------------------------------
*/
@@ -159,4 +159,3 @@ relpathbackend(RelFileNode rnode, BackendId backend, ForkNumber forknum)
}
return path;
}
-