raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3c5ab2b46ee6fdb6c04742aefaa4375364394037

commit 3c5ab2b46ee6fdb6c04742aefaa4375364394037
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Jul 9 12:13:40 2016 +0900

    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
---
 src/generic/evas/raw/main.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

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)
              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();
           }

-- 


Reply via email to