filelen is set to the return result of BLI_filesize
authorKent Mein <mein@cs.umn.edu>
Tue, 5 Jun 2007 15:43:20 +0000 (15:43 +0000)
committerKent Mein <mein@cs.umn.edu>
Tue, 5 Jun 2007 15:43:20 +0000 (15:43 +0000)
commit0a436e01e269595377c01ca0b10c9df05cc426eb
tree2fa62e5f857dae369cf56b3daaf6f339e7377fb2
parentd01d36ddd63960ba6a88a3bb928371d92cd3a270
filelen is set to the return result of BLI_filesize
which can return -1.  So lets check for -1 before calling malloc
and doing more work.

Another coverity fix.

Kent
source/blender/blenkernel/intern/exotic.c