From 7434e91f7ddc75f6a5e7274cf54ba954d5035807 Mon Sep 17 00:00:00 2001 From: Rob Haarsma Date: Sat, 11 Dec 2004 15:56:01 +0000 Subject: 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.. --- source/blender/blenlib/intern/fileops.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender') 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) { -- cgit v1.2.3