summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdecoder/cfg_options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/cfg_options.h b/decoder/cfg_options.h
index 331363d2..db89e8c3 100755
--- a/decoder/cfg_options.h
+++ b/decoder/cfg_options.h
@@ -56,6 +56,7 @@ struct CFGOptions {
return "CFG output options";
}
void maybe_print(CFG &cfg,std::string cfg_output,char const* desc=" unbinarized") {
+ if (cfg_output.empty() return;
WriteFile o(cfg_output);
std::cerr<<"Printing target"<<desc<<" CFG to "<<cfg_output<<": "<<format<<'\n';
cfg.Print(o.get(),format);