aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmexp.c')
-rw-r--r--src/gdbmexp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gdbmexp.c b/src/gdbmexp.c
index 613166e..f188040 100644
--- a/src/gdbmexp.c
+++ b/src/gdbmexp.c
@@ -32,6 +32,9 @@ gdbm_export_to_file (GDBM_FILE dbf, FILE *fp)
const char *header2 = "\r\n!\r\n";
int count = 0;
+ /* Return immediately if the database needs recovery */
+ GDBM_ASSERT_CONSISTENCY (dbf, -1);
+
/* Write out the text header. */
if (fwrite (header1, strlen (header1), 1, fp) != 1)
goto write_fail;

Return to:

Send suggestions and report system problems to the System administrator.