]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs: fix datascan kwarg parsing
authorJohn Spray <john.spray@redhat.com>
Fri, 24 Jul 2015 13:57:01 +0000 (14:57 +0100)
committerYan, Zheng <zyan@redhat.com>
Wed, 2 Dec 2015 07:16:20 +0000 (15:16 +0800)
Signed-off-by: John Spray <john.spray@redhat.com>
src/tools/cephfs/DataScan.cc

index 05bb864731616d4834fdeffee3a18cc4b59c7cf6..f9c491dbb70c6894ea3ddd751501514648956e1b 100644 (file)
@@ -52,7 +52,7 @@ bool DataScan::parse_kwarg(
   }
 
   const std::string arg(*i);
-  const std::string val(*(++i));
+  const std::string val(*(i + 1));
 
   if (arg == std::string("--output-dir")) {
     if (driver != NULL) {