diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-26 16:22:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-26 16:22:50 +0400 |
commit | 3d8bace558670c2b14e84867095ddb9f43644023 (patch) | |
tree | 49fe7d6c8f3a97b5d08c67cfcacebe73db9f36c0 /source/blender/blenlib | |
parent | 9e96295ddbe0ee67b7a2706eb951d3d8f6cfb65d (diff) |
fix for eternal loop in recursive_operation()
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 5 |
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; } } |