aboutsummaryrefslogtreecommitdiff
path: root/src/findkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/findkey.c')
-rw-r--r--src/findkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/findkey.c b/src/findkey.c
index b4b3bd2..6b13fbf 100644
--- a/src/findkey.c
+++ b/src/findkey.c
@@ -149,7 +149,7 @@ _gdbm_findkey (GDBM_FILE dbf, datum key, char **ret_dptr, int *ret_hash_val)
}
/* If we get here, we never found the key. */
- gdbm_errno = GDBM_ITEM_NOT_FOUND;
+ gdbm_set_errno (dbf, GDBM_ITEM_NOT_FOUND, 0);
return -1;
}

Return to:

Send suggestions and report system problems to the System administrator.