summaryrefslogtreecommitdiff
path: root/src/generic/evas/svg/main.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-07-13 15:21:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-13 15:21:06 +0900
commit3ad848f5c5a580d0c07178c457a687b2bd99de2b (patch)
treecfdc2415a4305585789ba3f853fc8e34d598021a /src/generic/evas/svg/main.c
parent0368adfcba149c17a25eaf1ab2291ec89d303506 (diff)
evas: Fix some CID in generic loaders
Check the return value of fwrite. There is nothing sensible to do as the receiver needs to handle the error gracefully. CID 1356613, 1356614, 1356615, 1356200
Diffstat (limited to '')
-rw-r--r--src/generic/evas/svg/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/generic/evas/svg/main.c b/src/generic/evas/svg/main.c
index 8c46708d92..f1973303ee 100644
--- a/src/generic/evas/svg/main.c
+++ b/src/generic/evas/svg/main.c
@@ -218,7 +218,12 @@ int main(int argc, char **argv)
218 else 218 else
219 { 219 {
220 printf("data\n"); 220 printf("data\n");
221 fwrite(shm_addr, width * height * sizeof(DATA32), 1, stdout); 221 if (fwrite(shm_addr, width * height * sizeof(DATA32), 1, stdout) != 1)
222 {
223 // nothing much to do, the receiver will simply ignore the
224 // data as it's too short
225 //D("fwrite failed (%d bytes): %m\n", width * height * sizeof(DATA32));
226 }
222 } 227 }
223 shm_free(); 228 shm_free();
224 } 229 }