Blender Git Commit Log

Git Commits -> Revision 442b6e5

Revision 442b6e5 by Sybren A. Stüvel (master)
January 14, 2021, 10:38 (GMT)
MeshCache: add error handling to `fread()` calls

Handle return value of `fread()`, by showing an error message when the
file cannot be read from and stopping further processing. Not only is
error handing a good idea, it also prevents GCC from warning that the
return value of `fread()` should not be ignored.

This is similar to {D9916}.

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D10079

Commit Details:

Full Hash: 442b6e5e09510e938dba558bed5bd125ffe4a0c1
Parent Commit: 024ac9c
Lines Changed: +28, -5

2 Modified Paths:

/source/blender/modifiers/intern/MOD_meshcache_mdd.c (+19, -3) (Diff)
/source/blender/modifiers/intern/MOD_meshcache_pc2.c (+9, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021