We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981e2fd commit f56a92aCopy full SHA for f56a92a
kmc_api/kmc_file.cpp
@@ -45,7 +45,7 @@ bool CKMCFile::OpenForRA(const std::string &file_name)
45
46
sufix_file_buf = new uchar[size];
47
result = fread(sufix_file_buf, 1, size, file_suf);
48
- if (result == 0)
+ if (result != size)
49
return false;
50
51
fclose(file_suf);
0 commit comments