mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Uemis downloader: open returns -1 on error
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b8b0364873
commit
83a5778f62
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ static bool uemis_init(const char *path)
|
||||||
/* let's check if this is indeed a Uemis DC */
|
/* let's check if this is indeed a Uemis DC */
|
||||||
reqtxt_path = build_filename(path, "req.txt");
|
reqtxt_path = build_filename(path, "req.txt");
|
||||||
reqtxt_file = subsurface_open(reqtxt_path, O_RDONLY, 0666);
|
reqtxt_file = subsurface_open(reqtxt_path, O_RDONLY, 0666);
|
||||||
if (!reqtxt_file) {
|
if (reqtxt_file < 0) {
|
||||||
#if UEMIS_DEBUG & 1
|
#if UEMIS_DEBUG & 1
|
||||||
fprintf(debugfile, ":EE req.txt can't be opened\n");
|
fprintf(debugfile, ":EE req.txt can't be opened\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue