summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:16:23 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:16:23 -0700
commit83a5778f62dcea4ab98c795c9a15cef4a7a82b17 (patch)
tree69620e4722195e6756aeb651a7d128d9eda1a95e /uemis-downloader.c
parentb8b03648739a96b89beab82883afaef199e1db80 (diff)
downloadsubsurface-83a5778f62dcea4ab98c795c9a15cef4a7a82b17.tar.gz
Uemis downloader: open returns -1 on error
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index d14e6e7c6..95cebe492 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -213,7 +213,7 @@ static bool uemis_init(const char *path)
/* let's check if this is indeed a Uemis DC */
reqtxt_path = build_filename(path, "req.txt");
reqtxt_file = subsurface_open(reqtxt_path, O_RDONLY, 0666);
- if (!reqtxt_file) {
+ if (reqtxt_file < 0) {
#if UEMIS_DEBUG & 1
fprintf(debugfile, ":EE req.txt can't be opened\n");
#endif