summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-12-22 12:36:27 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-12-22 12:36:27 (GMT)
commit62fdb2431f1966f2e1ee6bc465c88f666a673feb (patch)
treeccc44c211b1caebc631fabb61dadabeac7bfba1e
parent9c4efafc6e2f07e96b035c0dd847667240c53851 (diff)
fix crash bug
-rw-r--r--tests/csgtestcore.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/csgtestcore.cc b/tests/csgtestcore.cc
index 469e51c..c2be326 100644
--- a/tests/csgtestcore.cc
+++ b/tests/csgtestcore.cc
@@ -289,9 +289,10 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type)
exit(1);
}
- QFileInfo fileInfo(filename);
- if (!sysinfo_dump)
+ if (!sysinfo_dump) {
+ QFileInfo fileInfo(filename);
QDir::setCurrent(fileInfo.absolutePath());
+ }
AbstractNode::resetIndexCounter();
AbstractNode *absolute_root_node = root_module->evaluate(&root_ctx, &root_inst);
contact: Jan Huwald // Impressum