summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 14:17:33 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2013-12-07 21:11:33 +0100
commit494e75eb0e47c3fce0db5f7675cb0ab10bf6671d (patch)
tree903981a182999dc2d0ef056e94528beb93eb580e /src/bin
parent1d1feea572c6ccd179e3ef36b5e3380673081a08 (diff)
eldbus: print error when fwrite fails
Return value of fwrite should be checked. Fixes 1039715
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eldbus/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/eldbus/utils.c b/src/bin/eldbus/utils.c
index c0af73bc20..514c209069 100644
--- a/src/bin/eldbus/utils.c
+++ b/src/bin/eldbus/utils.c
@@ -42,7 +42,10 @@ file_write(const char *file_name, const char *buffer)
42 return EINA_FALSE; 42 return EINA_FALSE;
43 } 43 }
44 44
45 fwrite(buffer, strlen(buffer), 1, file_handler); 45 if (fwrite(buffer, strlen(buffer), 1, file_handler) < 1)
46 {
47 printf("Error writing to file: %s\n", file_name);
48 }
46 fclose(file_handler); 49 fclose(file_handler);
47 50
48 return EINA_TRUE; 51 return EINA_TRUE;