fixed uninitialized pointer which could lead to segfaults when the user specifies nonexistent/invalid tool-names in the init-file
mathias mathias
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/ToolFactory.cc
→
src/ToolFactory.cc
@@ -85,7 +85,7 @@
} ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &parent, Toolbar &tbar) { - ToolbarItem * item; + ToolbarItem * item = 0; unsigned int button_size = 24; if (tbar.theme().buttonSize() > 0)