mirror of
https://git.freebsd.org/ports.git
synced 2025-07-03 10:29:15 -04:00
11 lines
350 B
C++
11 lines
350 B
C++
--- src/HistoryWindow.cc.orig Wed Oct 2 00:32:00 2002
|
|
+++ src/HistoryWindow.cc Thu Apr 8 22:41:14 2004
|
|
@@ -479,7 +479,7 @@
|
|
{
|
|
ifstream infile(filename.c_str(), ios::in);
|
|
|
|
- if(infile.bad()) return false;
|
|
+ if(!infile.is_open() || infile.bad()) return false;
|
|
int count = 0;
|
|
while(!infile.eof() && count < maxHistory) {
|
|
string line;
|