aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorneusdan <neusdan>2015-03-10 13:19:15 +0000
committerlloyd <[email protected]>2015-03-10 13:19:15 +0000
commit26a67dbac3d7413bf4c520473b6ab7c97266a133 (patch)
treeabc74201f5ba64aa71b443a432fb6b46381204cb /src/cmd
parentae23641ce0531e77b77d660873de1c2e374d21d0 (diff)
Comile fixes for VC 2013. Based on github pull 56
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/main.cpp b/src/cmd/main.cpp
index acb221354..3a6bd4e36 100644
--- a/src/cmd/main.cpp
+++ b/src/cmd/main.cpp
@@ -35,8 +35,6 @@ int help(int , char* argv[])
std::cout << "Available commands:\n";
- Botan::LibraryInitializer init;
-
size_t idx = 1;
for(auto&& app: apps)
{
@@ -165,6 +163,8 @@ int main(int argc, char* argv[])
if(cmd == "help" || cmd == "-h")
return help(argc, argv);
+ Botan::LibraryInitializer init;
+
AppRegistrations& apps = AppRegistrations::instance();
if(apps.has(cmd))
return apps.run(cmd, argc - 1, argv + 1);
@@ -185,4 +185,3 @@ int main(int argc, char* argv[])
return 0;
}
-