summaryrefslogtreecommitdiffstats
path: root/tools/test/h5jam/getub.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/h5jam/getub.c')
-rw-r--r--tools/test/h5jam/getub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/h5jam/getub.c b/tools/test/h5jam/getub.c
index 7cfde36..26a427d 100644
--- a/tools/test/h5jam/getub.c
+++ b/tools/test/h5jam/getub.c
@@ -148,7 +148,7 @@ main(int argc, const char *argv[])
error:
if(buf)
HDfree(buf);
- if(fd > -1)
+ if(fd >= 0)
HDclose(fd);
return EXIT_FAILURE;
} /* end main() */