diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-26 23:23:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-26 23:23:13 +0300 |
commit | d5592fe254c7061ca8bbcea93b6098dc9bf3d683 (patch) | |
tree | 740a09af66dbfe68763d2d9b721479e67bafe434 /source/blender/blenlib/intern/fileops.c | |
parent | 5689ab39754dcd7229f616e3eed206bea5611545 (diff) |
fixes for errors/warnings found with cppcheck
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 15277c438f4..ae20eda5a59 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -159,7 +159,7 @@ int BLI_gzip(char *from, char *to) { file = open(from,O_BINARY|O_RDONLY); - if ( -1 == file ) return -2; + if (file < 0) return -2; while ( 1 ) { |