aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/hash.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-03-17 02:46:01 +0000
committerlloyd <[email protected]>2009-03-17 02:46:01 +0000
commitb14127fc125dbbfc841ef8248bc797896dd2223f (patch)
treee7fff446bf8c577361b48a85066d006872989501 /doc/examples/hash.cpp
parent92e1cc72da0315a5de8536265f2ef928d0e526c6 (diff)
Add LibraryInitializers to the examples, instead of relying on lazy init.
Patch from David X Callaway.
Diffstat (limited to 'doc/examples/hash.cpp')
-rw-r--r--doc/examples/hash.cpp2
1 files changed, 2 insertions, 0 deletions
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";