Skip to content
Browse files

cdvdgigaherz: Prevent potential infinite loop on ini read

Fixes a condition where a file read error could cause an infinite loop.
  • Loading branch information...
turtleli committed Sep 21, 2019
1 parent 33f4f04 commit 0967f9bcfcb15ac35adbaa8a17ca3b235ea07aba
Showing with 2 additions and 4 deletions.
  1. +2 −4 plugins/cdvdGigaherz/src/Settings.cpp
@@ -54,10 +54,8 @@ void Settings::Load(const std::string &filename)
if (!file.is_open())

while (!file.eof()) {
std::string line;
std::getline(file, line);

std::string line;
while (std::getline(file, line)) {
auto separator = line.find('=');
if (separator == std::string::npos)

0 comments on commit 0967f9b

Please sign in to comment.
You can’t perform that action at this time.