Merge pull request #15881 from joscollin/wip-1412776-explicit-null-dereferenced

common: Passing null pointer option_name to operator << in md_config_t::parse_option()

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Sage Weil 2017-06-27 10:22:03 -05:00 committed by GitHub
commit 6f6d6ed984

View File

@ -603,6 +603,7 @@ int md_config_t::parse_option(std::vector<const char*>& args,
}
if (ret != 0 || !error_message.empty()) {
assert(option_name);
if (oss) {
*oss << "Parse error setting " << option_name << " to '"
<< val << "' using injectargs";