summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/filedb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filedb.c b/src/filedb.c
index 7e1c34d..9d75f40 100644
--- a/src/filedb.c
+++ b/src/filedb.c
@@ -523,6 +523,10 @@ transaction_itf(
case Anydb_Transaction_Cancel:
rc = recoverdb(filedb);
break;
+ default:
+ errno = EINVAL;
+ rc = -1;
+ break;
}
return rc;
}