Fix string issues

This commit is contained in:
baldurk
2021-04-27 17:13:18 +01:00
parent 5b2203d9d2
commit 2e0af1e3ca
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ void rdclog_filename(const char *filename)
{
logfileHandle = FileIO::logfile_open(*logfile);
if(logfileHandle && previous.c_str())
if(logfileHandle && !previous.empty())
{
rdcstr previousContents;
FileIO::ReadAll(previous, previousContents);
+1 -1
View File
@@ -433,7 +433,7 @@ void RenderDoc::Initialise()
FileIO::GetDefaultFiles(base, capture_filename, m_LoggingFilename, m_Target);
if(m_CaptureFileTemplate.empty())
SetCaptureFileTemplate(capture_filename.c_str());
SetCaptureFileTemplate(capture_filename);
RDCLOGFILE(m_LoggingFilename.c_str());
}