summaryrefslogtreecommitdiffabout
path: root/src/update.c
authorSergey Poznyakoff <gray@gnu.org>2018-05-24 05:28:51 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-05-24 05:29:47 (GMT)
commitf82d0b213fd2cdce80dc891906fba8d589115664 (patch) (side-by-side diff)
tree9aa091d9fbe7fea183391fc9e22fc0f2f54ae28f /src/update.c
parent0665bcf0c9cdf756f9d5edc6a638c56602c42065 (diff)
downloadgdbm-f82d0b213fd2cdce80dc891906fba8d589115664.tar.gz
gdbm-f82d0b213fd2cdce80dc891906fba8d589115664.tar.bz2
Fix the use of return code from _gdbm_full_(read|write) functions
Diffstat (limited to 'src/update.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index 905ba69..63c6c95 100644
--- a/src/update.c
+++ b/src/update.c
@@ -112,7 +112,7 @@ _gdbm_end_update (GDBM_FILE dbf)
GDBM_DEBUG (GDBM_DEBUG_STORE|GDBM_DEBUG_ERR,
"%s: error writing directory: %s",
dbf->name, gdbm_db_strerror (dbf));
- _gdbm_fatal (dbf, gdbm_strerror (rc));
+ _gdbm_fatal (dbf, gdbm_db_strerror (dbf));
return -1;
}

Return to:

Send suggestions and report system problems to the System administrator.