Commit c15f20bd authored by Diego Biurrun's avatar Diego Biurrun Committed by Fiona Glaser

opencl: Check return value of fread()

common/opencl.c:138:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
parent af8e768e
......@@ -135,7 +135,8 @@ static cl_program x264_opencl_cache_load( x264_t *h, const char *dev_name, const
rewind( fp );
CHECKED_MALLOC( binary, size );
fread( binary, 1, size, fp );
if ( fread( binary, 1, size, fp ) != size )
goto fail;
const uint8_t *ptr = (const uint8_t*)binary;
#define CHECK_STRING( STR )\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment