From 17abbcb3a71c232569f1dfcc7c7dcea2318c7a97 Mon Sep 17 00:00:00 2001 From: mathias Date: Fri, 4 Feb 2005 17:27:39 +0000 Subject: fixed uninitialized pointer which could lead to segfaults when the user specifies nonexistent/invalid tool-names in the init-file --- src/ToolFactory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc index 5d8d6c5..47dc6bc 100644 --- a/src/ToolFactory.cc +++ b/src/ToolFactory.cc @@ -85,7 +85,7 @@ ToolFactory::ToolFactory(BScreen &screen):m_screen(screen), } 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) -- cgit v0.11.2