From c75ecd8c45d04a1dd54f3687a5550de1c6a5b735 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Thu, 19 Feb 2015 17:44:42 +0100 Subject: [PATCH] Fix the build error for real --- lib/cli/troubleshootcollectcommand.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/cli/troubleshootcollectcommand.cpp b/lib/cli/troubleshootcollectcommand.cpp index f243424f1..6ffc76e38 100644 --- a/lib/cli/troubleshootcollectcommand.cpp +++ b/lib/cli/troubleshootcollectcommand.cpp @@ -357,10 +357,9 @@ void TroubleshootCollectCommand::CheckObjectFile(const String& objectfile, InfoL bool first = true; - if (print) - ObjectListUtility::PrintObject(std::ostream(NULL), first, message, type_count, "", ""); - else - ObjectListUtility::PrintObject(std::ostream(NULL), first, message, type_count, "", ""); + std::ofstream badstream; + + ObjectListUtility::PrintObject(badstream, first, message, type_count, "", ""); Dictionary::Ptr object = JsonDecode(message); Dictionary::Ptr properties = object->Get("properties"); -- 2.40.0