mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 15:29:26 -05:00
Add check for empty lines in DownloadManager
This commit is contained in:
@@ -299,6 +299,12 @@ std::vector<std::shared_ptr<DownloadManager::FileFuture>> DownloadManager::downl
|
||||
std::string line;
|
||||
int nFiles = 0;
|
||||
while (std::getline(temporary, line)) {
|
||||
if (line.empty()) {
|
||||
// This might occur if someone added multiple newlines
|
||||
// or mixing carriage return and newlines
|
||||
continue;
|
||||
}
|
||||
|
||||
++nFiles;
|
||||
#ifdef __APPLE__
|
||||
// @TODO: Fix this so that the ifdef is not necessary anymore ---abock
|
||||
|
||||
Reference in New Issue
Block a user