From 9e71abaa0ac6f8d6929225688d1f9c83597d329e Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 24 Jul 2015 14:57:01 +0100 Subject: [PATCH] tools/cephfs: fix datascan kwarg parsing Signed-off-by: John Spray --- src/tools/cephfs/DataScan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/cephfs/DataScan.cc b/src/tools/cephfs/DataScan.cc index 05bb8647316..f9c491dbb70 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) {