Merge branch 'master' into blender2.8
[blender.git] / source / blender / windowmanager / intern / wm_files.c
index 5339029900a4ffcb5983465da915ac14ebda7623..0bf24b3e615cdd4c5522c12bbabd6fad560f2ce8 100644 (file)
@@ -607,7 +607,7 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports)
                Main *bmain = CTX_data_main(C);
 
                /* when loading startup.blend's, we can be left with a blank path */
-               if (BKE_main_blendfile_path(bmain)) {
+               if (BKE_main_blendfile_path(bmain)[0] != '\0') {
                        G.save_over = 1;
                }
                else {