Skip to content
Snippets Groups Projects
Commit c98996e6 authored by Alain Linden's avatar Alain Linden
Browse files

fix test failure caused by dubious method for testing an empty string.

parent 2f363a77
No related branches found
No related tags found
No related merge requests found
......@@ -249,7 +249,7 @@ BOOL LLDir_Win32::getNextFileInDir(const std::string &dirname, const std::string
if (pathname != mCurrentDir)
{
// different dir specified, close old search
if (mCurrentDir[0])
if (!mCurrentDir.empty())
{
FindClose(mDirSearch_h);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment