Mismatch in r278804.

This commit is contained in:
Pedro F. Giffuni 2015-02-15 18:02:05 +00:00
parent 09cc2762fa
commit b78ceb0a58

View File

@ -1450,7 +1450,7 @@ docompat:
pos = ftello(st->fp);
}
fin:
if (st->fp != NULL || !stayopen) {
if (st->fp != NULL && !stayopen) {
fclose(st->fp);
st->fp = NULL;
}