From: John Spray Date: Fri, 24 Jul 2015 13:57:01 +0000 (+0100) Subject: tools/cephfs: fix datascan kwarg parsing X-Git-Tag: v10.0.2~134^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e71abaa0ac6f8d6929225688d1f9c83597d329e;p=ceph.git tools/cephfs: fix datascan kwarg parsing Signed-off-by: John Spray --- diff --git a/src/tools/cephfs/DataScan.cc b/src/tools/cephfs/DataScan.cc index 05bb86473161..f9c491dbb70c 100644 --- a/src/tools/cephfs/DataScan.cc +++ b/src/tools/cephfs/DataScan.cc @@ -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) {