evas generic loader raw - fix small coverity complaint

technically we dont handle a failed fwrite to stdout according to
coverity, but this is harmless as it doesnt matter if it fails - the
owner process cares. slave does not. silence CID 1356615
This commit is contained in:
Carsten Haitzler 2016-07-09 12:13:40 +09:00
parent f6d8ae3123
commit 3c5ab2b46e
1 changed files with 8 additions and 1 deletions

View File

@ -229,7 +229,14 @@ int main(int argc, char **argv)
else
{
printf("data\n");
fwrite(data, (unsigned int)(width * height) * sizeof(DATA32), 1, stdout);
if (fwrite(data,
(unsigned int)(width * height) * sizeof(DATA32),
1, stdout) != 1)
{
shm_free();
_raw_shutdown();
return -1;
}
}
shm_free();
}