Bug #1136
closedmember not initialized in WEnvironment
0%
Description
On my test valgrind is complaing like this:
11662 Conditional jump or move depends on uninitialised value(s)
11662 at 0xCF031E8: Wt::WebSession::fixRelativeUrl(std::string const&) const (WebSession.C:466)
11662 by 0xCC40F8F: Wt::WApplication::resolveRelativeUrl(std::string const&) const (WApplication.C:645)
11662 by 0xCC417EE: Wt::WApplication::resourcesUrl() (WApplication.C:407)
11662 by 0xCC1904A: Wt::WAbstractItemView::initDragDrop() (WAbstractItemView.C:391)
11662 by 0xCC1B7A8: Wt::WAbstractItemView::configureModelDragDrop() (WAbstractItemView.C:596)
11662 by 0xCC1BD35: Wt::WAbstractItemView::setDragEnabled(bool) (WAbstractItemView.C:1110)
and indeed at WebSession.C:466 there is:
if (env_->hashInternalPaths()) ...
now if env_ is a WEnvironment inizialized without parameter happens that the default constructor doesn't inizialize any internal
member, this happens when the enviroment used is an instance of Wt::Test::WTestEnvironment (it inherit from WEnvironment)
Updated by Koen Deforche almost 13 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
- Target version set to 3.2.1
Hey,
Thanks for catching this. The test environment should indeed initialize this to false.
Regards,
koen
Updated by Pieter Libin almost 13 years ago
- Status changed from InProgress to Resolved