Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-26 23:23:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-26 23:23:13 +0300
commitd5592fe254c7061ca8bbcea93b6098dc9bf3d683 (patch)
tree740a09af66dbfe68763d2d9b721479e67bafe434 /source/blender/blenlib
parent5689ab39754dcd7229f616e3eed206bea5611545 (diff)
fixes for errors/warnings found with cppcheck
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/fileops.c2
-rw-r--r--source/blender/blenlib/intern/storage.c2
2 files changed, 2 insertions, 2 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 )
{
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index c830e5fc2c8..09bca168e64 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -440,7 +440,7 @@ int BLI_filepathsize(const char *path)
{
int size, file = open(path, O_BINARY|O_RDONLY);
- if (file <= 0)
+ if (file < 0)
return -1;
size = BLI_filesize(file);