changed runtime dir

This commit is contained in:
Johannes Wendel
2019-08-15 19:59:19 +02:00
parent d6af093f19
commit b546a4c022

View File

@@ -258,7 +258,7 @@ void FlippRServer::handle_help(const std::string& name, const std::string& value
std::string FlippRServer::get_runtime_dir()
{
std::string runtime_dir = std::getenv("XDG_RUNTIME_DIR");
if(runtime_dir == "")
if(&runtime_dir == nullptr)
{
runtime_dir = DEFAULT_RUNTIME_DIR;
}