Commit bd157a95 authored by kulvait's avatar kulvait

FIX RunTimeInfo

Second constructor fix
parent d6746819
......@@ -3,6 +3,13 @@
namespace CTL {
namespace io {
RunTimeInfo::RunTimeInfo()
: RunTimeInfo(0, nullptr)
{
}
RunTimeInfo::RunTimeInfo(int argc, char* argv[])
: argc(argc)
, argv(argv)
{
char exepath[PATH_MAX + 1] = { 0 };
ssize_t len = ::readlink("/proc/self/exe", exepath, PATH_MAX);
......@@ -16,13 +23,6 @@ namespace io {
}
}
RunTimeInfo::RunTimeInfo(int argc, char* argv[])
: argc(argc)
, argv(argv)
{
RunTimeInfo();
}
std::string RunTimeInfo::getExecutablePath() { return (executablePath); }
std::string RunTimeInfo::getExecutableName() { return io::getBasename(executablePath); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment