compat_passwd(): yet another uninitialized access to stayopen.

CID:	1018731
This commit is contained in:
Pedro F. Giffuni 2015-03-06 22:22:57 +00:00
parent 2627f31ff0
commit b3d078e666

View File

@ -1942,7 +1942,7 @@ docompat:
break;
}
fin:
if (!stayopen && st->db != NULL) {
if (st->db != NULL && !stayopen) {
(void)st->db->close(st->db);
st->db = NULL;
}