The previous change added a new scan-build warning about need_password
assigned but not read.
/* 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)
PQfinish(tmpconn);
need_password = true;
}
- else
- break;
}
+ while (need_password);
if (PQstatus(tmpconn) != CONNECTION_OK)
{