diff options
Diffstat (limited to 'src/system/dlt-system-log.c')
-rw-r--r-- | src/system/dlt-system-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/dlt-system-log.c b/src/system/dlt-system-log.c index 781171e..ac6aa1a 100644 --- a/src/system/dlt-system-log.c +++ b/src/system/dlt-system-log.c @@ -144,7 +144,7 @@ int dlt_system_compress_file(char *src, int level) /* Write to the output file */ comp_count = Z_CHUNK_SZ - strm.avail_out; if (fwrite(buf_out, 1, comp_count, f_out) != comp_count || - ferror(dest)) + ferror(f_out)) { fprintf(stderr, "dlt_system_compress_file: Error while writing file."); fclose(f_in); |