diff options
author | Hans Nilsson <[email protected]> | 2019-03-20 12:55:06 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-03-21 14:46:31 +0100 |
commit | 7188527f1465c715c7e71e5477f4116f27202288 (patch) | |
tree | e7a6a7200705e9bdf34af1e3e903fb6a2a09e563 /lib/crypto/c_src | |
parent | a51d1c32304ea97e24d81f27a246bcf1fe8df521 (diff) | |
download | otp-7188527f1465c715c7e71e5477f4116f27202288.tar.gz otp-7188527f1465c715c7e71e5477f4116f27202288.tar.bz2 otp-7188527f1465c715c7e71e5477f4116f27202288.zip |
crypto: Fixup unused label warning
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r-- | lib/crypto/c_src/engine.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/crypto/c_src/engine.c b/lib/crypto/c_src/engine.c index 7ffbb9e70d..ea5d9a588f 100644 --- a/lib/crypto/c_src/engine.c +++ b/lib/crypto/c_src/engine.c @@ -106,15 +106,13 @@ int init_engine_ctx(ErlNifEnv *env) { (ErlNifResourceDtor*) engine_ctx_dtor, ERL_NIF_RT_CREATE|ERL_NIF_RT_TAKEOVER, NULL); - if (engine_ctx_rtype == NULL) - goto err; + if (engine_ctx_rtype == NULL) { + PRINTF_ERR0("CRYPTO: Could not open resource type 'ENGINE_CTX'"); + return 0; + } #endif return 1; - - err: - PRINTF_ERR0("CRYPTO: Could not open resource type 'ENGINE_CTX'"); - return 0; } ERL_NIF_TERM engine_by_id_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) |