CID 731939 (#1 of 1): Dereference after null check (FORWARD_NULL)
At (5): Passing null pointer "out" to function "std::operator << <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> > &, char const *)", which dereferences it.
Broken by
13b841c74605d67a172d787079bcef007d1a8fa5.
Signed-off-by: Sage Weil <sage@inktank.com>
if (out)
*out << "osd." << cur << "\t";
if (!exists(cur)) {
- *out << "DNE\t\t";
+ if (out)
+ *out << "DNE\t\t";
} else {
if (is_up(cur)) {
if (out)