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>2012-09-26 16:22:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-26 16:22:50 +0400
commit3d8bace558670c2b14e84867095ddb9f43644023 (patch)
tree49fe7d6c8f3a97b5d08c67cfcacebe73db9f36c0 /source/blender/blenlib/intern/fileops.c
parent9e96295ddbe0ee67b7a2706eb951d3d8f6cfb65d (diff)
fix for eternal loop in recursive_operation()
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r--source/blender/blenlib/intern/fileops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index c2f0c38247a..9ccd6e3d521 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -514,8 +514,9 @@ static int recursive_operation(const char *startfrom, const char *startto, Recur
}
if (ret != 0) {
- while (i < n)
- free(dirlist[i]);
+ while (i < n) {
+ free(dirlist[i++]);
+ }
break;
}
}