- change max threads from 8 to 64, need to keep an eye on stack memory use here.
[blender.git] / source / blender / blenkernel / intern / packedFile.c
index bd0b1a5e36e295e2c7721a07ffa35156d1e6674f..036cadebbe86a2d1341cc8b70bf0a8cd709b7fa4 100644 (file)
@@ -176,6 +176,11 @@ PackedFile *newPackedFile(ReportList *reports, char *filename)
        char name[FILE_MAXDIR+FILE_MAXFILE];
        void *data;
        
+       /* render result has no filename and can be ignored
+        * any other files with no name can be ignored too */
+       if(filename[0]=='\0')
+               return NULL;
+
        //XXX waitcursor(1);
        
        // convert relative filenames to absolute filenames
@@ -188,7 +193,7 @@ PackedFile *newPackedFile(ReportList *reports, char *filename)
 
        file= open(name, O_BINARY|O_RDONLY);
        if (file <= 0) {
-               BKE_reportf(reports, RPT_ERROR, "Can't open file: %s", name);
+               BKE_reportf(reports, RPT_ERROR, "Can't open file: \"%s\"", name);
        } else {
                filelen = BLI_filesize(file);
 
@@ -236,7 +241,7 @@ void packAll(Main *bmain, ReportList *reports)
 // attempt to create a function that generates an unique filename
 // this will work when all funtions in fileops.c understand relative filenames...
 
-char *find_new_name(char *name)
+static char *find_new_name(char *name)
 {
        char tempname[FILE_MAXDIR + FILE_MAXFILE];
        char *newname;