[Bf-blender-cvs] [4456145] master: fix T47484: replaced tempnam() by simple name 'untitled'
Gaia Clary
noreply at git.blender.org
Fri Feb 19 16:23:38 CET 2016
Commit: 44561459f3e8a355a24c493bbd86d381db8624b7
Author: Gaia Clary
Date: Fri Feb 19 16:23:11 2016 +0100
Branches: master
https://developer.blender.org/rB44561459f3e8a355a24c493bbd86d381db8624b7
fix T47484: replaced tempnam() by simple name 'untitled'
===================================================================
M source/blender/collada/DocumentExporter.cpp
===================================================================
diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp
index 1348d7e..2a76442 100644
--- a/source/blender/collada/DocumentExporter.cpp
+++ b/source/blender/collada/DocumentExporter.cpp
@@ -160,7 +160,7 @@ static COLLADABU::NativeString make_temp_filepath(const char *name, const char *
const char *tempdir = BKE_tempdir_session();
if (name == NULL) {
- name = tmpnam(NULL);
+ name = "untitled";
}
BLI_make_file_string(NULL, tempfile, tempdir, name);
More information about the Bf-blender-cvs
mailing list