diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-02-12 12:43:09 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-02-12 12:43:09 -0300 |
commit | 0e81ddde2c62ada7f818114ca961d80d42370e32 (patch) | |
tree | 4423a21ffde38396c10c416a002aa936fe708a00 /src/common/fe_memutils.c | |
parent | 0f980b0e17d95e77dc2822eb7855d072a5874d9a (diff) | |
download | postgresql-0e81ddde2c62ada7f818114ca961d80d42370e32.tar.gz postgresql-0e81ddde2c62ada7f818114ca961d80d42370e32.zip |
Rename "string" pstrdup argument to "in"
The former name collides with a symbol also used in the isolation test's
parser, causing assorted failures in certain platforms.
Diffstat (limited to 'src/common/fe_memutils.c')
-rw-r--r-- | src/common/fe_memutils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/fe_memutils.c b/src/common/fe_memutils.c index 7d4d99eefd5..afb42030e7b 100644 --- a/src/common/fe_memutils.c +++ b/src/common/fe_memutils.c @@ -67,17 +67,17 @@ pg_realloc(void *ptr, size_t size) * "Safe" wrapper around strdup(). */ char * -pg_strdup(const char *string) +pg_strdup(const char *in) { char *tmp; - if (!string) + if (!in) { fprintf(stderr, _("cannot duplicate null pointer (internal error)\n")); exit(EXIT_FAILURE); } - tmp = strdup(string); + tmp = strdup(in); if (!tmp) { fprintf(stderr, _("out of memory\n")); @@ -116,9 +116,9 @@ pfree(void *pointer) } char * -pstrdup(const char *string) +pstrdup(const char *in) { - return pg_strdup(string); + return pg_strdup(in); } void * |