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:
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index a236defc515..78a4599b3b3 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -502,7 +502,7 @@ int BLI_has_parent(char *path)
BLI_add_slash(path);
len = strlen(path)-1;
- while (len) {
+ while (len>=0) {
if ((path[len] == '\\') || (path[len] == '/'))
slashes++;
len--;