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

Commit2443a26

Browse files
committed
Remove unnecessary #ifdef FRONTEND check to choose between strdup and pstrdup.
The libpgcommon patch made that unnecessary, palloc and friends are nowavailable in frontend programs too, mapped to plain old malloc.As pointed out by Alvaro Herrera.
1 parent71877c1 commit2443a26

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎src/port/wait_error.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ char *
3434
wait_result_to_str(intexitstatus)
3535
{
3636
charstr[512];
37-
char*result;
3837

3938
if (WIFEXITED(exitstatus))
4039
{
@@ -83,10 +82,5 @@ wait_result_to_str(int exitstatus)
8382
_("child process exited with unrecognized status %d"),
8483
exitstatus);
8584

86-
#ifndefFRONTEND
87-
result=pstrdup(str);
88-
#else
89-
result=strdup(str);
90-
#endif
91-
returnresult;
85+
returnpstrdup(str);
9286
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp