diff options
author | Jack Lloyd <[email protected]> | 2015-12-30 23:35:16 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-12-30 23:35:16 -0500 |
commit | d4915aa4cd9c11879780267413f2980d0014240e (patch) | |
tree | 8663a7cde0ad9f7fc632c6c2f5ce33a733f8ed26 /src/tests/main.cpp | |
parent | d27416e791c9aed684efe0d6071fe66a43cf7af0 (diff) |
Avoid having Command* objects be created until requested.
Avoids various static init and destruction hassles.
Diffstat (limited to 'src/tests/main.cpp')
-rw-r--r-- | src/tests/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/main.cpp b/src/tests/main.cpp index 57a525dbd..c15fab438 100644 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -249,7 +249,7 @@ class Test_Runner : public Botan_CLI::Command }; -BOTAN_REGISTER_COMMAND(Test_Runner); +BOTAN_REGISTER_COMMAND("test", Test_Runner); } @@ -259,7 +259,7 @@ int main(int argc, char* argv[]) BOTAN_VERSION_MINOR, BOTAN_VERSION_PATCH); - Botan_CLI::Command* cmd = Botan_CLI::Command::get_cmd("test"); + std::unique_ptr<Botan_CLI::Command> cmd(Botan_CLI::Command::get_cmd("test")); if(!cmd) { |