summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-log.c
diff options
context:
space:
mode:
authorLassi Marttala <lassi.lm.marttala@partner.bmw.com>2012-03-13 16:08:07 +0100
committerChristian Muck <christian.muck@bmw.de>2012-04-04 14:27:59 +0200
commit6e4b6237eaaf4a58906065927fd34c9141459fd9 (patch)
treee3c0784fb16c3dfeb7be56fb8844044cdca479db /src/system/dlt-system-log.c
parentafc83af9b5e7ad6b288cf6d93b8da5c6a8628e95 (diff)
downloadDLT-daemon-6e4b6237eaaf4a58906065927fd34c9141459fd9.tar.gz
GDLT-2 Link with libz, fix a typo.
Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src/system/dlt-system-log.c')
-rw-r--r--src/system/dlt-system-log.c2
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);