diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 7a5f4ad0f6..966b372a92 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -822,6 +822,9 @@ const std::string& GetUserPath(unsigned int dir_index) // Rebuilds internal directory structure to compensate for the new directory void SetUserPath(unsigned int dir_index, const std::string& path) { + if (path.empty()) + return; + s_user_paths[dir_index] = path; RebuildUserDirectories(dir_index); }