summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ntfs_udl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntfs_udl.c b/src/ntfs_udl.c
index 37d0a50..4fec49a 100644
--- a/src/ntfs_udl.c
+++ b/src/ntfs_udl.c
@@ -816,7 +816,7 @@ static int open_file(const char *pathname)
{
int fh;
fh=open(pathname, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
- if(fh>=0 || errno!=ENOENT)
+ if(fh != -1 || errno!=ENOENT)
return fh;
mkdir_local_for_file(pathname);
return open(pathname, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);