db close routine actually writes data out to disk; return value was
not being checked. Change code to fail if db->close errors. PR: 4202
This commit is contained in:
parent
be2b748c02
commit
667917cb16
@ -405,8 +405,10 @@ main(argc, argv)
|
||||
error("put");
|
||||
}
|
||||
|
||||
(void)(dp->close)(dp);
|
||||
(void)(sdp->close)(sdp);
|
||||
if ((dp->close)(dp) == -1)
|
||||
error("close");
|
||||
if ((sdp->close)(sdp) == -1)
|
||||
error("close");
|
||||
if (makeold) {
|
||||
(void)fflush(oldfp);
|
||||
(void)fclose(oldfp);
|
||||
|
Loading…
Reference in New Issue
Block a user