Fix an invalid string construction issue in the rule validator 82/70982/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 23 May 2016 12:37:32 +0000 (21:37 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 23 May 2016 12:37:32 +0000 (21:37 +0900)
std::string cannot be initiated from a bool type input parameter.

Change-Id: I4dcfbe21470b7f44a1be7ff2bf78881802af4763
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/rule_validator.cpp

index dfee6fe..f85cc18 100644 (file)
@@ -346,7 +346,7 @@ bool ctx::rule_validator::set_ref_info(std::string type, ctx::Json* jref, std::s
 std::string ctx::rule_validator::get_data_type(std::string type, std::string name, std::string key)
 {
        ctx::Json tmpl = get_template(name);
-       IF_FAIL_RETURN(tmpl != EMPTY_JSON_OBJECT, false);
+       IF_FAIL_RETURN(tmpl != EMPTY_JSON_OBJECT, "");
 
        ctx::Json detailed_tmpl;
        tmpl.get(NULL, type.c_str(), &detailed_tmpl);