mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
42baadd690
PR: ports/65371 Submitted by: Ports Fury
14 lines
376 B
C++
14 lines
376 B
C++
--- src/gui_main.cc.orig Thu Dec 19 00:41:05 2002
|
|
+++ src/gui_main.cc Thu Apr 8 22:41:14 2004
|
|
@@ -830,8 +830,8 @@
|
|
*/
|
|
ifstream infile(filename.c_str(), ios::in);
|
|
map<string, string> guiInfoMap;
|
|
- if(infile.bad()) return false;
|
|
-
|
|
+ if(!infile.is_open() || infile.bad()) return false;
|
|
+
|
|
if(infile.eof()) return false;
|
|
while(!infile.eof()) {
|
|
string line;
|