aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmexp.c')
-rw-r--r--src/gdbmexp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gdbmexp.c b/src/gdbmexp.c
index 25ad5b2..56a792a 100644
--- a/src/gdbmexp.c
+++ b/src/gdbmexp.c
@@ -85,3 +85,8 @@ gdbm_export_to_file (GDBM_FILE dbf, FILE *fp)
}
- if (gdbm_errno != GDBM_ITEM_NOT_FOUND)
+ if (gdbm_last_errno (dbf) == GDBM_ITEM_NOT_FOUND)
+ {
+ gdbm_clear_error (dbf);
+ gdbm_errno = GDBM_NO_ERROR;
+ }
+ else
return -1;

Return to:

Send suggestions and report system problems to the System administrator.