Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e81ddd

Browse files
committed
Rename "string" pstrdup argument to "in"
The former name collides with a symbol also used in the isolation test'sparser, causing assorted failures in certain platforms.
1 parent0f980b0 commit0e81ddd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎src/common/fe_memutils.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ pg_realloc(void *ptr, size_t size)
6767
* "Safe" wrapper around strdup().
6868
*/
6969
char*
70-
pg_strdup(constchar*string)
70+
pg_strdup(constchar*in)
7171
{
7272
char*tmp;
7373

74-
if (!string)
74+
if (!in)
7575
{
7676
fprintf(stderr,
7777
_("cannot duplicate null pointer (internal error)\n"));
7878
exit(EXIT_FAILURE);
7979
}
80-
tmp=strdup(string);
80+
tmp=strdup(in);
8181
if (!tmp)
8282
{
8383
fprintf(stderr,_("out of memory\n"));
@@ -116,9 +116,9 @@ pfree(void *pointer)
116116
}
117117

118118
char*
119-
pstrdup(constchar*string)
119+
pstrdup(constchar*in)
120120
{
121-
returnpg_strdup(string);
121+
returnpg_strdup(in);
122122
}
123123

124124
void*

‎src/include/common/fe_memutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndefFE_MEMUTILS_H
1010
#defineFE_MEMUTILS_H
1111

12-
externchar*pg_strdup(constchar*string);
12+
externchar*pg_strdup(constchar*in);
1313
externvoid*pg_malloc(size_tsize);
1414
externvoid*pg_malloc0(size_tsize);
1515
externvoid*pg_realloc(void*pointer,size_tsize);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp