Fixes the Coverity Scan Report:
CID
1412776 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)19. var_deref_model: Passing null pointer option_name to operator <<, which dereferences it.
Fixed the review comments too in this commit.
Signed-off-by: Jos Collin <jcollin@redhat.com>
}
if (ret != 0 || !error_message.empty()) {
+ assert(option_name);
if (oss) {
*oss << "Parse error setting " << option_name << " to '"
<< val << "' using injectargs";