summaryrefslogtreecommitdiff
path: root/src/generic
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-09 12:13:40 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-09 12:13:40 +0900
commit3c5ab2b46ee6fdb6c04742aefaa4375364394037 (patch)
tree7c6bee8d61e71b7c1148432823f93630b7d826fd /src/generic
parentf6d8ae3123bb648fa495664416c07a807f57a746 (diff)
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
Diffstat (limited to 'src/generic')
-rw-r--r--src/generic/evas/raw/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/generic/evas/raw/main.c b/src/generic/evas/raw/main.c
index ac9f810..275815b 100644
--- a/src/generic/evas/raw/main.c
+++ b/src/generic/evas/raw/main.c
@@ -229,7 +229,14 @@ int main(int argc, char **argv)
229 else 229 else
230 { 230 {
231 printf("data\n"); 231 printf("data\n");
232 fwrite(data, (unsigned int)(width * height) * sizeof(DATA32), 1, stdout); 232 if (fwrite(data,
233 (unsigned int)(width * height) * sizeof(DATA32),
234 1, stdout) != 1)
235 {
236 shm_free();
237 _raw_shutdown();
238 return -1;
239 }
233 } 240 }
234 shm_free(); 241 shm_free();
235 } 242 }