From a2390189f8531ca61561f3fb18a2ccb0642ca991 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sun, 29 Sep 2013 14:32:21 -0400 Subject: [PATCH] Make sure to not set an output stream if the user hasn't requested it. --- CLTool/src/clwin32.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CLTool/src/clwin32.cpp b/CLTool/src/clwin32.cpp index 4afb334..ba70d91 100644 --- a/CLTool/src/clwin32.cpp +++ b/CLTool/src/clwin32.cpp @@ -232,7 +232,10 @@ int _tmain(int argc, _TCHAR* argv[]) settings.iQuality = quality; settings.iNumCompressions = numCompressions; settings.iJobSize = numJobs; - settings.logStream = &logStream; + if(bSaveLog) + settings.logStream = &logStream; + else + settings.logStream = NULL; CompressedImage *ci = CompressImage(&img, settings); if(NULL == ci) {