summaryrefslogtreecommitdiffstats
path: root/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace.c')
-rw-r--r--trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trace.c b/trace.c
index b8dc001..9d192da 100644
--- a/trace.c
+++ b/trace.c
@@ -264,6 +264,7 @@ void _end_trace(const char *__file, int __line)
FILE *fp;
struct admin_list *admin;
struct admin_queue *response, **responsep; /* response pointer */
+ int ret;
if (!trace.name[0])
PERROR("trace not started in file %s line %d\n", __file, __line);
@@ -278,7 +279,7 @@ void _end_trace(const char *__file, int __line)
if (options.log[0]) {
fp = fopen(options.log, "a");
if (fp) {
- fwrite(string, strlen(string), 1, fp);
+ ret = fwrite(string, strlen(string), 1, fp);
fclose(fp);
}
}