]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
config: remove bad argparse_flag argument in parse_option()
authorSage Weil <sage@inktank.com>
Tue, 3 Jul 2012 13:46:10 +0000 (06:46 -0700)
committerSage Weil <sage@inktank.com>
Tue, 3 Jul 2012 16:21:47 +0000 (09:21 -0700)
This is wrong, and thankfully valgrind picks it up.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config.cc

index 8f2c5b9333ed5db9bf68f881cdfc4b18dae1d53d..840ebd2f91c92af1d025ddd797feb36ad64af745 100644 (file)
@@ -434,7 +434,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;
        }