diff options
| author | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-03-08 17:03:02 +0900 |
|---|---|---|
| committer | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2026-03-08 17:03:02 +0900 |
| commit | 9f8d14709476c22ada6ea26c3406fd0471deaee8 (patch) | |
| tree | 3a73c14302b4e09caacb15809df87f912f53ec43 | |
| parent | e5dcc309e7dcdf7c08a656fe31e76f7304556459 (diff) | |
| download | portable-9f8d14709476c22ada6ea26c3406fd0471deaee8.tar.gz portable-9f8d14709476c22ada6ea26c3406fd0471deaee8.tar.bz2 portable-9f8d14709476c22ada6ea26c3406fd0471deaee8.zip | |
Verify -1 instead of negative value
| -rw-r--r-- | crypto/compat/posix_win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c index 00d3d82..bc0fa36 100644 --- a/crypto/compat/posix_win.c +++ b/crypto/compat/posix_win.c | |||
| @@ -89,7 +89,7 @@ posix_open(const char *path, ...) | |||
| 89 | flags &= ~O_NONBLOCK; | 89 | flags &= ~O_NONBLOCK; |
| 90 | 90 | ||
| 91 | const int fh = open(path, flags, mode); | 91 | const int fh = open(path, flags, mode); |
| 92 | if (fh < 0) { | 92 | if (fh == -1) { |
| 93 | return fh; | 93 | return fh; |
| 94 | } | 94 | } |
| 95 | 95 | ||
