Revision: 41387
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41387
Author:   jensverwiebe
Date:     2011-10-30 20:47:03 +0000 (Sun, 30 Oct 2011)
Log Message:
-----------
WIN32, fix a crash when blender is executed in background mode, patch by kjym3

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/path_util.c

Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c     2011-10-30 
16:00:35 UTC (rev 41386)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c     2011-10-30 
20:47:03 UTC (rev 41387)
@@ -1844,7 +1844,7 @@
                /* 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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to