diff options
author | Sage Weil <sage@inktank.com> | 2012-07-03 06:46:10 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-03 06:46:10 -0700 |
commit | b53cdb97d15f9276a9b26bec9f29034149f93358 (patch) | |
tree | 7cd4af0c49f4c09390410b0f945fbf8d57fa3b85 /src/common | |
parent | c2b20ca74249892c8e5e40c12aa14446a2bf2030 (diff) | |
download | ceph-b53cdb97d15f9276a9b26bec9f29034149f93358.tar.gz |
config: remove bad argparse_flag argument in parse_option()
This is wrong, and thankfully valgrind picks it up.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/config.cc b/src/common/config.cc index ff39059b0c0..0b53f3969ad 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -433,7 +433,7 @@ int md_config_t::parse_option(std::vector<const char*>& args, } else { std::string no("--no-"); no += opt->name; - if (ceph_argparse_flag(args, i, &res, no.c_str(), (char*)NULL)) { + if (ceph_argparse_flag(args, i, no.c_str(), (char*)NULL)) { set_val_impl("false", opt); break; } |