From 928014c88a77ed9dcec0621f9aff01c9a28a5d9b Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Fri, 1 Sep 2017 17:43:07 +0300 Subject: [PATCH] mdbx: fix coverity warning (minor). Change-Id: Iaa4f8d6611139a9c500b3d803c7fe1fbcc8591e1 --- tutorial/sample-mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/sample-mdbx.c b/tutorial/sample-mdbx.c index 39adba02..f5188cf4 100644 --- a/tutorial/sample-mdbx.c +++ b/tutorial/sample-mdbx.c @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) { rc = mdbx_env_create(&env); if (rc != MDBX_SUCCESS) { fprintf(stderr, "mdbx_env_create: (%d) %s\n", rc, mdbx_strerror(rc)); - return 0; + goto bailout; } rc = mdbx_env_open(env, "./example-db", MDBX_NOSUBDIR | MDBX_COALESCE | MDBX_LIFORECLAIM, 0664);