From 922f0049feb4213c981f12c6bbdd517dd71e468d Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Wed, 5 Oct 2011 11:05:27 +0200 Subject: [PATCH] Remove debug and check that options are correct --- segmentation/clitkRelativePositionList.txx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/segmentation/clitkRelativePositionList.txx b/segmentation/clitkRelativePositionList.txx index 3ce5559..ec49a54 100644 --- a/segmentation/clitkRelativePositionList.txx +++ b/segmentation/clitkRelativePositionList.txx @@ -77,7 +77,6 @@ Read(std::string filename) { if (!is) stop = true; else { std::getline(is, s); - // DD(s); if (s.find("object") != std::string::npos) stop=true; else ss << s << std::endl; if (!is) stop = true; @@ -96,8 +95,9 @@ Read(std::string filename) { ArgsInfoType args_info; std::vector writable(tmpfilename.size() + 1); std::copy(tmpfilename.begin(), tmpfilename.end(), writable.begin()); - char ** argv; - cmdline_parser_clitkRelativePosition2(0, argv, &args_info, 1, 1, 0); + char ** argv = new char*[1]; + argv[0] = new char[1]; + cmdline_parser_clitkRelativePosition2(1, argv, &args_info, 1, 1, 0); args_info.input_given = 1; args_info.input_arg = new char[1]; args_info.output_given = 1; -- 2.47.1