diff options
author | lloyd <[email protected]> | 2008-11-11 01:28:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-11 01:28:20 +0000 |
commit | 37955fb85460069cbef4dbe95222ed80d2b4152b (patch) | |
tree | 1425d78a8e2af80e3ed3df8aad684d24dd2537a4 | |
parent | e2d4cb5a9cd046453e79589d6c182bc23975ae4b (diff) |
Add back default empty arguments to LibraryInitializer
Set default thread safety to false
-rw-r--r-- | src/libstate/init.cpp | 2 | ||||
-rw-r--r-- | src/libstate/init.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libstate/init.cpp b/src/libstate/init.cpp index 890871411..377055bd4 100644 --- a/src/libstate/init.cpp +++ b/src/libstate/init.cpp @@ -14,7 +14,7 @@ namespace Botan { *************************************************/ void LibraryInitializer::initialize(const std::string& arg_string) { - bool thread_safe = true; + bool thread_safe = false; const std::vector<std::string> arg_list = split_on(arg_string, ' '); for(u32bit j = 0; j != arg_list.size(); ++j) diff --git a/src/libstate/init.h b/src/libstate/init.h index affceb332..a20a392fe 100644 --- a/src/libstate/init.h +++ b/src/libstate/init.h @@ -19,7 +19,7 @@ namespace Botan { class BOTAN_DLL LibraryInitializer { public: - static void initialize(const std::string& options); + static void initialize(const std::string& options = ""); static void deinitialize(); @@ -27,7 +27,7 @@ class BOTAN_DLL LibraryInitializer * Initialize the library * @param thread_safe if the library should use a thread-safe mutex */ - LibraryInitializer(const std::string& options) + LibraryInitializer(const std::string& options = "") { LibraryInitializer::initialize(options); } ~LibraryInitializer() { LibraryInitializer::deinitialize(); } |