diff options
| author | Doug Hogan <[email protected]> | 2018-12-21 08:48:02 -0800 |
|---|---|---|
| committer | Doug Hogan <[email protected]> | 2018-12-21 08:48:46 -0800 |
| commit | 69deab0db3d114928dde2fd9f86bcd3b507fe3ab (patch) | |
| tree | fa394c4bb265eec08b1609aa5300b9f808065be7 /lib/crypto/c_src | |
| parent | 2bd13b4d55664518e4b2741de813ac726fe87892 (diff) | |
| download | otp-69deab0db3d114928dde2fd9f86bcd3b507fe3ab.tar.gz otp-69deab0db3d114928dde2fd9f86bcd3b507fe3ab.tar.bz2 otp-69deab0db3d114928dde2fd9f86bcd3b507fe3ab.zip | |
If init_atoms() fails, it should return __LINE__
Diffstat (limited to 'lib/crypto/c_src')
| -rw-r--r-- | lib/crypto/c_src/crypto.c | 2 |
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 |
