From b14127fc125dbbfc841ef8248bc797896dd2223f Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 17 Mar 2009 02:46:01 +0000 Subject: Add LibraryInitializers to the examples, instead of relying on lazy init. Patch from David X Callaway. --- doc/examples/hash.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/examples/hash.cpp') diff --git a/doc/examples/hash.cpp b/doc/examples/hash.cpp index 7c9500160..a97cd6082 100644 --- a/doc/examples/hash.cpp +++ b/doc/examples/hash.cpp @@ -22,6 +22,8 @@ int main(int argc, char* argv[]) return 1; } + Botan::LibraryInitializer init; + std::string hash = argv[1]; /* a couple of special cases, kind of a crock */ if(hash == "sha1") hash = "SHA-1"; -- cgit v1.2.3