From 551096d6fd414510c4d726d0dae2f9703cb440d9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Apr 2014 16:40:17 +1000 Subject: BLI_open: check returned value for `-1` instead of `< 0` --- source/blender/blenlib/intern/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/fileops.c') diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 988979b5d0a..bcceb00139a 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -86,7 +86,7 @@ int BLI_file_gzip(const char *from, const char *to) if (gzfile == NULL) return -1; file = BLI_open(from, O_BINARY | O_RDONLY, 0); - if (file < 0) + if (file == -1) return -2; while (1) { -- cgit v1.2.3