summaryrefslogtreecommitdiffabout
path: root/src/gdbmexp.c
Unidiff
Diffstat (limited to 'src/gdbmexp.c') (more/less context) (show whitespace changes)
-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
@@ -83,7 +83,12 @@ gdbm_export_to_file (GDBM_FILE dbf, FILE *fp)
83 83
84 count++; 84 count++;
85 } 85 }
86 if (gdbm_errno != GDBM_ITEM_NOT_FOUND) 86 if (gdbm_last_errno (dbf) == GDBM_ITEM_NOT_FOUND)
87 {
88 gdbm_clear_error (dbf);
89 gdbm_errno = GDBM_NO_ERROR;
90 }
91 else
87 return -1; 92 return -1;
88 93
89 return count; 94 return count;

Return to:

Send suggestions and report system problems to the System administrator.