diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-17 23:26:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-17 23:27:27 +0300 |
commit | a9dbaf3755ac1abad109970e0fff190bb7418ac2 (patch) | |
tree | 7c3382bd34b97cfb6a41d4065a6b6cd8fca2c1cc /source/blender/blenkernel/intern/bpath.c | |
parent | e089b0e91162fb0932bdb88e9905cdd9fb6b94dd (diff) |
Ensure BLI_stat() return value is checked.
also add function attrs on BLI_fileops to ensure they're used correctly.
Diffstat (limited to 'source/blender/blenkernel/intern/bpath.c')
-rw-r--r-- | source/blender/blenkernel/intern/bpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c index fc3c1a20700..3488cff7315 100644 --- a/source/blender/blenkernel/intern/bpath.c +++ b/source/blender/blenkernel/intern/bpath.c @@ -233,7 +233,7 @@ static int findFileRecursive(char *filename_new, BLI_join_dirfile(path, sizeof(path), dirname, de->d_name); - if (BLI_stat(path, &status) != 0) + if (BLI_stat(path, &status) == -1) continue; /* cant stat, don't bother with this file, could print debug info here */ if (S_ISREG(status.st_mode)) { /* is file */ |