fix [#27405] Append objects with linked materials they dissapears after save
[blender.git] / source / blender / blenlib / intern / bpath.c
index a56b1392b69df58d50c9a2eece23553133330f52..640091b1ab34cf046a72655c16b994a27994f32b 100644 (file)
@@ -750,7 +750,9 @@ void makeFilesAbsolute(Main *bmain, const char *basedir, ReportList *reports)
        
        /* be sure there is low chance of the path being too short */
        char filepath_absolute[(FILE_MAXDIR * 2) + FILE_MAXFILE];
-       
+
+       BLI_assert(basedir[0] != '\0');
+
        BLI_bpathIterator_init(&bpi, bmain, basedir, 0);
        while (!BLI_bpathIterator_isDone(bpi)) {
                BLI_bpathIterator_getPath(bpi, filepath);