path: root/tools
diff options
authorJonathan Liu <>2012-09-03 20:54:33 +1000
committerQt by Nokia <>2012-09-03 13:41:55 +0200
commitd6d67d90119ced0af3b45677a15d428ed349407c (patch)
treeb4babcb25dfa5f5361055b5d6eb27d742514302c /tools
parentbe71325421b50057e0d439a4ea93e65d50d4ec88 (diff)
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 <>
Diffstat (limited to 'tools')
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 7fc1c6246a..226214db43 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -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;