diff options
author | Hans Nilsson <hans@erlang.org> | 2021-10-07 13:36:39 +0200 |
---|---|---|
committer | Hans Nilsson <hans@erlang.org> | 2021-10-07 13:36:39 +0200 |
commit | 2028168e17524aa47eb49d2c3396856de04ad3c1 (patch) | |
tree | f6958fc961571aaa834f57adef2d0ae67bd14978 | |
parent | b51754190f94d8da328f6fc0f0cc4622ccce8205 (diff) | |
download | erlang-2028168e17524aa47eb49d2c3396856de04ad3c1.tar.gz |
crypto: Silence CodeChecker
-rw-r--r-- | lib/crypto/c_src/api_ng.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/crypto/c_src/api_ng.c b/lib/crypto/c_src/api_ng.c index 35404ba1e0..077cdda92e 100644 --- a/lib/crypto/c_src/api_ng.c +++ b/lib/crypto/c_src/api_ng.c @@ -210,6 +210,11 @@ static int get_init_args(ErlNifEnv* env, ctx_res->padded_size = -1; ctx_res->size = 0; + /* Two initializations to make CodeChecker happy: it gets a bit desoriented + by the NIF Exception model */ + ctx_res->encflag = 0; + ctx_res->padding = atom_error; + /* Fetch the options */ if ((*return_term = get_opts(env, argv[opts_arg_num], opts_arg_num, &(ctx_res->encflag), &(ctx_res->padding)) |