aboutsummaryrefslogtreecommitdiff
path: root/compat/dbmdelete.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/dbmdelete.c')
-rw-r--r--compat/dbmdelete.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/compat/dbmdelete.c b/compat/dbmdelete.c
index 0f3f8a4..22e6976 100644
--- a/compat/dbmdelete.c
+++ b/compat/dbmdelete.c
@@ -27,5 +27,8 @@
int
dbm_delete (DBM *dbm, datum key)
{
- return gdbm_delete (dbm->file, key);
+ int rc = gdbm_delete (dbm->file, key);
+ if (rc)
+ __gdbm_error_to_ndbm (dbm);
+ return rc;
}

Return to:

Send suggestions and report system problems to the System administrator.