Skip to content
Snippets Groups Projects
Commit 46f9b1b2 authored by Federico Montesino Pouzols's avatar Federico Montesino Pouzols
Browse files

check retvals from fread/fseek/fsetpos/fgetpos, 1076113-20, re #13951

parent abcf5920
No related branches found
No related tags found
No related merge requests found
...@@ -125,8 +125,13 @@ int ISISRAW2::ioRAW(FILE *file, bool from_file, bool read_data) { ...@@ -125,8 +125,13 @@ int ISISRAW2::ioRAW(FILE *file, bool from_file, bool read_data) {
/// @param file :: The file pointer /// @param file :: The file pointer
/// @param i :: The amount of data to skip /// @param i :: The amount of data to skip
void ISISRAW2::skipData(FILE *file, int i) { void ISISRAW2::skipData(FILE *file, int i) {
if (i < ndes) if (i < ndes) {
fseek(file, 4 * ddes[i].nwords, SEEK_CUR); int zero = fseek(file, 4 * ddes[i].nwords, SEEK_CUR);
if (0 != zero) {
g_log.warning() << "Failed to skip data from file, with value: " << i
<< "\n";
}
}
} }
/// Read data /// Read data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment