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

Commitf4482a5

Browse files
committed
Tweak streamutil.c further to avoid scan-build warning
The previous change added a new scan-build warning about need_passwordassigned but not read.
1 parent784e762 commitf4482a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/bin/pg_basebackup/streamutil.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ GetConnection(void)
117117
/* If -W was given, force prompt for password, but only the first time */
118118
need_password= (dbgetpassword==1&&dbpassword==NULL);
119119

120-
while (true)
120+
do
121121
{
122122
/* Get a new password if appropriate */
123123
if (need_password)
@@ -161,9 +161,8 @@ GetConnection(void)
161161
PQfinish(tmpconn);
162162
need_password= true;
163163
}
164-
else
165-
break;
166164
}
165+
while (need_password);
167166

168167
if (PQstatus(tmpconn)!=CONNECTION_OK)
169168
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp