epee: Don't set log file name when process path name isn't found

If process path name isn't found, then leave log file name blank.

This also applies if a process name is found, but it's blank after
removing a trailing dot extension.
This commit is contained in:
warptangent 2015-08-16 18:14:49 -07:00
parent f7c27f81af
commit b5b0f0857a
No known key found for this signature in database
GPG Key ID: 0E490BEBFBE4E92D
1 changed files with 2 additions and 1 deletions

View File

@ -861,6 +861,7 @@ namespace log_space
std::string::size_type a = m_default_log_file.rfind('.');
if ( a != std::string::npos )
m_default_log_file.erase( a, m_default_log_file.size());
if ( ! m_default_log_file.empty() )
m_default_log_file += ".log";
return true;