Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

return value of ok from init/0

The original return value of ok from init/0 got dropped accidentally
in a previous commit. Always return ok so that we fall back to the
Erlang variants of the hash functions if NIF loading fails.
  • Loading branch information...
commit 11bdcc5befb0d0bfe4383a1a0b3bfb978e3a8f9a 1 parent 3277c9e
@vinoski authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/erlsha2.erl
View
3  src/erlsha2.erl
@@ -198,7 +198,8 @@ init() ->
Dir ->
Dir
end, atom_to_list(?MODULE) ++ "_nif"),
- erlang:load_nif(SoName, 0).
+ erlang:load_nif(SoName, 0),
+ ok.
%% @spec sha224(message()) -> digest()
%% where
Please sign in to comment.
Something went wrong with that request. Please try again.