aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-07-12 10:23:51 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-07-12 10:23:51 +0200
commit15011a8739849e703ced1baae2fd15e34650bd96 (patch)
treea1daada1653075dd0a4dfa68aec496e716e100b3
parentb7e3aae06f705a5ac077f6a63993be209c1d3a8d (diff)
filedb: fix a warning
Change-Id: If2f4c07addbf7843f6c4cb2b26da1f9b902ee60f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-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;
}