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
path: root/source
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2011-10-31 00:47:03 +0400
committerJens Verwiebe <info@jensverwiebe.de>2011-10-31 00:47:03 +0400
commit6d5cf68aaf1347ff7456bb24a6b064c12aad0659 (patch)
treed7dcc117c9111266ed3ef215f37411c08d828753 /source
parent61a2dfe89d7f046888f2cceb1fa1cbf43f8ff76e (diff)
WIN32, fix a crash when blender is executed in background mode, patch by kjym3
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/path_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index bc24415fd3f..e03a7baca0c 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1844,7 +1844,7 @@ void BLI_where_is_temp(char *fullname, const size_t maxlen, char *userdir)
/* add a trailing slash if needed */
BLI_add_slash(fullname);
#ifdef WIN32
- if(userdir != fullname) {
+ if(userdir && userdir != fullname) {
BLI_strncpy(userdir, fullname, maxlen); /* also set user pref to show %TEMP%. /tmp/ is just plain confusing for Windows users. */
}
#endif