summaryrefslogtreecommitdiff
path: root/src/bin/eldbus/utils.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;