Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r3.in.v5d: Fix unchecked return value #4141

Merged
merged 10 commits into from
Sep 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion raster3d/r3.in.v5d/v5d.c
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,9 @@ int v5dReadCompressedGrid(v5dstruct *v, int time, int var, float *ga, float *gb,

/* move to position in file */
pos = grid_position(v, time, var);
lseek(v->FileDesc, pos, SEEK_SET);
if (lseek(v->FileDesc, pos, SEEK_SET) == -1) {
printf("lseek failed.\n");
wenzeslaus marked this conversation as resolved.
Show resolved Hide resolved
}

/* read ga, gb arrays */
read_float4_array(v->FileDesc, ga, v->Nl[var]);
Expand Down
Loading