diff options
-rw-r--r-- | src/gdbmtool.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gdbmtool.c b/src/gdbmtool.c index 46e3555..11b6f20 100644 --- a/src/gdbmtool.c +++ b/src/gdbmtool.c @@ -755,3 +755,7 @@ print_bucket_begin (struct handler_param *param, size_t *exp_count) } - _gdbm_get_bucket (gdbm_file, temp); + if (_gdbm_get_bucket (gdbm_file, temp)) + { + terror ("%s", gdbm_db_strerror (gdbm_file)); + return 1; + } if (exp_count) @@ -1134,3 +1138,3 @@ source_handler (struct handler_param *param) free (fname); - if (input_context_push (istr) == 0) + if (istr && input_context_push (istr) == 0) yyparse (); |