summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/examples/c/ex_encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/examples/c/ex_encrypt.c')
-rw-r--r--src/third_party/wiredtiger/examples/c/ex_encrypt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/examples/c/ex_encrypt.c b/src/third_party/wiredtiger/examples/c/ex_encrypt.c
index c53a61c92ea..a919148aff0 100644
--- a/src/third_party/wiredtiger/examples/c/ex_encrypt.c
+++ b/src/third_party/wiredtiger/examples/c/ex_encrypt.c
@@ -51,7 +51,7 @@ __declspec(dllexport)
#endif
int add_my_encryptors(WT_CONNECTION *connection);
-static const char *home = NULL;
+static const char *home;
#define SYS_KEYID "system"
#define SYS_PW "system_password"
@@ -587,6 +587,8 @@ main(void)
printf("Verified key %s; value %s\n", key1, val1);
}
+
ret = conn->close(conn, NULL);
- return (ret);
+
+ return (ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}