Do not try to create a string from a potentially null ptr, ref #561

This commit is contained in:
emeric
2025-01-05 16:49:21 +01:00
parent 3740c6f899
commit 1f6398b5b4
2 changed files with 26 additions and 5 deletions
@@ -77,7 +77,7 @@ namespace lms::scanner
}
catch (const image::Exception& e)
{
LMS_LOG(DBUPDATER, ERROR, "Cannot read image in file '" << _file.string() << "': " << e.what());
LMS_LOG(DBUPDATER, ERROR, "Cannot read image in file '" << _file.c_str() << "': " << e.what());
}
}