diff --git a/src/common/fe_memutils.c b/src/common/fe_memutils.c index 7d4d99eefd..afb42030e7 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 * diff --git a/src/include/common/fe_memutils.h b/src/include/common/fe_memutils.h index cefa7ecedc..13288f476a 100644 --- a/src/include/common/fe_memutils.h +++ b/src/include/common/fe_memutils.h @@ -9,7 +9,7 @@ #ifndef FE_MEMUTILS_H #define FE_MEMUTILS_H -extern char *pg_strdup(const char *string); +extern char *pg_strdup(const char *in); extern void *pg_malloc(size_t size); extern void *pg_malloc0(size_t size); extern void *pg_realloc(void *pointer, size_t size);