Signed-off-by: Orit Wasserman <owasserm@redhat.com>
}
if (verbose) {
formatter->close_section();
- formatter->flush(*out);
- formatter->flush(*out);
+ if (out) {
+ formatter->flush(*out);
+ formatter->flush(*out);
+ }
} else if (out && !(total_entries % 1000)) {
(*out) << " " << total_entries;
}
}
if (verbose) {
formatter->close_section();
- formatter->flush(*out);
+ if (out) {
+ formatter->flush(*out);
+ }
} else if (out) {
(*out) << " " << total_entries << std::endl;
}