Commit 14fb8fb9 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Fixed handling of XML schema string in tcov2locv (bug 529855)



Change-Id: I5497757db6c8ce557cfadeee4499f35ddbb39bbb
Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 7fa00a37
......@@ -336,13 +336,14 @@ int main(int argc, char *argv[])
// Leave it relative.
if (!input_dir) input_dir = ".";
if (!output_file) output_file = "output.info";
std::string xsd_file_str;
if (!xsd_file) {
const char *ttcn3_dir = getenv("TTCN3_DIR");
if (!ttcn3_dir) {
std::cerr << "$TTCN3_DIR environment variable is not set" << std::endl;
param_error = true;
} else {
std::string xsd_file_str = std::string(ttcn3_dir) + P_SEP + std::string("include") + P_SEP + std::string("tcov.xsd");
xsd_file_str = std::string(ttcn3_dir) + P_SEP + std::string("include") + P_SEP + std::string("tcov.xsd");
xsd_file = xsd_file_str.c_str();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment