aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2018-12-21 08:48:02 -0800
committerDoug Hogan <[email protected]>2018-12-21 08:48:46 -0800
commit69deab0db3d114928dde2fd9f86bcd3b507fe3ab (patch)
treefa394c4bb265eec08b1609aa5300b9f808065be7 /lib
parent2bd13b4d55664518e4b2741de813ac726fe87892 (diff)
downloadotp-69deab0db3d114928dde2fd9f86bcd3b507fe3ab.tar.gz
otp-69deab0db3d114928dde2fd9f86bcd3b507fe3ab.tar.bz2
otp-69deab0db3d114928dde2fd9f86bcd3b507fe3ab.zip
If init_atoms() fails, it should return __LINE__
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/c_src/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 27a0ebfd6b..fde3d99fa8 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -202,7 +202,7 @@ static int initialize(ErlNifEnv* env, ERL_NIF_TERM load_info)
}
if (!init_atoms(env, tpl_array[2], load_info)) {
- return 0;
+ return __LINE__;
}
#ifdef HAVE_DYNAMIC_CRYPTO_LIB