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:
authorJacques Lucke <jacques@blender.org>2020-09-09 16:43:09 +0300
committerJacques Lucke <jacques@blender.org>2020-09-09 16:43:27 +0300
commitddf4f2896878e3fd4a0f79d712a5e7b900b0cf7e (patch)
tree34d7b7b95eac92c2ab9bc596b1dd113fd2334381 /source/blender/blenfont/intern/blf_dir.c
parent842f52d418aaccae45c8e400eb0a8bddef0dbb51 (diff)
Cleanup: reduce variable scope
Diffstat (limited to 'source/blender/blenfont/intern/blf_dir.c')
-rw-r--r--source/blender/blenfont/intern/blf_dir.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/blenfont/intern/blf_dir.c b/source/blender/blenfont/intern/blf_dir.c
index 9603470615d..51d3849aa48 100644
--- a/source/blender/blenfont/intern/blf_dir.c
+++ b/source/blender/blenfont/intern/blf_dir.c
@@ -115,11 +115,8 @@ char **BLF_dir_get(int *ndir)
void BLF_dir_free(char **dirs, int count)
{
- char *path;
- int i;
-
- for (i = 0; i < count; i++) {
- path = dirs[i];
+ for (int i = 0; i < count; i++) {
+ char *path = dirs[i];
MEM_freeN(path);
}
MEM_freeN(dirs);