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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-05-13 15:10:05 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-05-13 15:48:55 +0300
commit7a2e271e5439d1888b21e4dafe782027f6ef0f77 (patch)
tree81b5981478350b28c49f12d390c7de5ca0a42907 /source/blender/blenkernel/intern/appdir.c
parent3469e623d3174ff4e82c430478640dfacd0e63ff (diff)
Fix compiler warnings.
Diffstat (limited to 'source/blender/blenkernel/intern/appdir.c')
-rw-r--r--source/blender/blenkernel/intern/appdir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c
index 16f8d16860f..2054442250e 100644
--- a/source/blender/blenkernel/intern/appdir.c
+++ b/source/blender/blenkernel/intern/appdir.c
@@ -790,7 +790,9 @@ static void where_is_temp(char *fullname, char *basename, const size_t maxlen, c
BLI_dir_create_recursive(tmp_name);
}
#else
- mkdtemp(tmp_name);
+ if (mkdtemp(tmp_name) == NULL) {
+ BLI_dir_create_recursive(tmp_name);
+ }
#endif
}
if (BLI_is_dir(tmp_name)) {