mirror of
https://github.com/ceph/ceph
synced 2025-01-12 14:10:27 +00:00
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:
commit
6f6d6ed984
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user