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>2014-04-22 10:40:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-22 10:40:17 +0400
commit551096d6fd414510c4d726d0dae2f9703cb440d9 (patch)
tree8f237e5942954d9da1bea04d69792d751dc52b77 /source/blender/imbuf/intern/util.c
parent1b523b54e680d1b0bc8c7c978f8f5cf2e5b1a64e (diff)
BLI_open: check returned value for `-1` instead of `< 0`
Diffstat (limited to 'source/blender/imbuf/intern/util.c')
-rw-r--r--source/blender/imbuf/intern/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c
index a91990774fc..36f83676174 100644
--- a/source/blender/imbuf/intern/util.c
+++ b/source/blender/imbuf/intern/util.c
@@ -200,7 +200,7 @@ bool IMB_ispic(const char *name)
if (((st.st_mode) & S_IFMT) != S_IFREG)
return false;
- if ((fp = BLI_open(name, O_BINARY | O_RDONLY, 0)) < 0)
+ if ((fp = BLI_open(name, O_BINARY | O_RDONLY, 0)) == -1)
return false;
memset(buf, 0, sizeof(buf));