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:
authorRob Haarsma <phaseIV@zonnet.nl>2004-12-11 18:56:01 +0300
committerRob Haarsma <phaseIV@zonnet.nl>2004-12-11 18:56:01 +0300
commit7434e91f7ddc75f6a5e7274cf54ba954d5035807 (patch)
tree6b1de6c1c809840c4840109ae0e2203550118ae4 /source/blender/blenlib/intern/fileops.c
parent10d23303433151344899027495840ff82a5119a0 (diff)
Bugfix #1589
When the render output directory doesn't exist (on windows) the BLI_recurdir_fileops() function tries to create a directory with no name. Added check if a name is specified..
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r--source/blender/blenlib/intern/fileops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index a7d8c9c0323..a0d071aa177 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -198,9 +198,10 @@ void BLI_recurdir_fileops(char *dirname) {
*lslash = 0;
BLI_recurdir_fileops(tmp);
}
-
- if (!CreateDirectory(dirname, NULL))
- callLocalErrorCallBack("Unable to create directory\n");
+
+ if(dirname[0]) /* patch, this recursive loop tries to create a nameless directory */
+ if (!CreateDirectory(dirname, NULL))
+ callLocalErrorCallBack("Unable to create directory\n");
}
int BLI_rename(char *from, char *to) {