mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1159302 - handle ftell errors in nsINIParser::InitFromFile; r=erahm
This commit is contained in:
parent
f843c7f96c
commit
75988e9e44
@ -117,7 +117,8 @@ nsINIParser::InitFromFILE(FILE* aFd)
|
||||
}
|
||||
|
||||
long flen = ftell(aFd);
|
||||
if (flen == 0) {
|
||||
/* zero-sized file, or an error */
|
||||
if (flen <= 0) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user