BLI_make_file_string wasn't guaranteed to initialize the resulting path, some parts...
[blender.git] / source / blender / blenloader / intern / writefile.c
index 752677d047df459f26a01e7c0e2952a2ce395f54..45eaa6d0156383eb12c11a0ffcb85bfec36c7628 100644 (file)
@@ -2699,7 +2699,6 @@ int BLO_write_file(Main *mainvar, const char *filepath, int write_flags, ReportL
                }
        }
 
-       userfilename[0]= '\0'; /* ensure its initialized */
        BLI_make_file_string(G.main->name, userfilename, BLI_get_folder_create(BLENDER_USER_CONFIG, NULL), BLENDER_STARTUP_FILE);
        write_user_block= (BLI_path_cmp(filepath, userfilename) == 0);