diff options
author | Jonathan Liu <net147@gmail.com> | 2012-09-03 20:54:33 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-03 13:41:55 +0200 |
commit | d6d67d90119ced0af3b45677a15d428ed349407c (patch) | |
tree | b4babcb25dfa5f5361055b5d6eb27d742514302c /tools | |
parent | be71325421b50057e0d439a4ea93e65d50d4ec88 (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 <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/configure/configureapp.cpp | 2 |
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; |