1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/www/aria/files/patch-src::gui_main.cc
Kirill Ponomarev 42baadd690 - Fix build on big-endian arch
PR:		ports/65371
Submitted by:	Ports Fury
2004-04-09 18:20:43 +00:00

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;