Tweak streamutil.c further to avoid scan-build warning

The previous change added a new scan-build warning about need_password
assigned but not read.
This commit is contained in:
Peter Eisentraut 2013-11-21 21:46:43 -05:00
parent 784e762e88
commit f4482a542c
1 changed files with 2 additions and 3 deletions

View File

@ -117,7 +117,7 @@ GetConnection(void)
/* If -W was given, force prompt for password, but only the first time */
need_password = (dbgetpassword == 1 && dbpassword == NULL);
while (true)
do
{
/* Get a new password if appropriate */
if (need_password)
@ -161,9 +161,8 @@ GetConnection(void)
PQfinish(tmpconn);
need_password = true;
}
else
break;
}
while (need_password);
if (PQstatus(tmpconn) != CONNECTION_OK)
{