configure: Fix infinite loop displaying config.summary

Displaying config.summary sometimes results in an infinite loop because
the loop condition only checks that failbit and badbit are not set.
The eofbit may be set with failbit and badbit not set.

Change-Id: I209480fbf114365fd4fdf1289c988a386f9f2562
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
bb10
Jonathan Liu 2012-09-03 20:54:33 +10:00 committed by Qt by Nokia
parent be71325421
commit d6d67d9011
1 changed files with 1 additions and 1 deletions

View File

@ -3382,7 +3382,7 @@ void Configure::displayConfig()
// display config.summary
sout.seekg(0, ios::beg);
while (sout) {
while (sout.good()) {
string str;
getline(sout, str);
cout << str << endl;