summaryrefslogtreecommitdiff
path: root/ext/dba/dba_gdbm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dba/dba_gdbm.c')
-rw-r--r--ext/dba/dba_gdbm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/dba/dba_gdbm.c b/ext/dba/dba_gdbm.c
index e462d01b95..49cf088f78 100644
--- a/ext/dba/dba_gdbm.c
+++ b/ext/dba/dba_gdbm.c
@@ -49,7 +49,7 @@ DBA_OPEN_FUNC(gdbm)
info->mode == DBA_TRUNC ? GDBM_NEWDB : -1;
if(gmode == -1)
- return FAILURE;
+ return FAILURE; /* not possible */
if(info->argc > 0) {
convert_to_long_ex(info->argv[0]);
@@ -63,6 +63,7 @@ DBA_OPEN_FUNC(gdbm)
((dba_gdbm_data *) info->dbf)->dbf = dbf;
return SUCCESS;
}
+ *error = "Out of memory";
return FAILURE;
}