diff options
author | mathias <mathias> | 2005-02-04 17:27:39 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-02-04 17:27:39 (GMT) |
commit | 17abbcb3a71c232569f1dfcc7c7dcea2318c7a97 (patch) | |
tree | a3558e64b72a68426a37921ce573940ffc56edb3 | |
parent | 7b2d1c12f2c47242a6297df08a8c5692de216539 (diff) | |
download | fluxbox_pavel-17abbcb3a71c232569f1dfcc7c7dcea2318c7a97.zip fluxbox_pavel-17abbcb3a71c232569f1dfcc7c7dcea2318c7a97.tar.bz2 |
fixed uninitialized pointer which could lead to segfaults when the user
specifies nonexistent/invalid tool-names in the init-file
-rw-r--r-- | src/ToolFactory.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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), | |||
85 | } | 85 | } |
86 | 86 | ||
87 | ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &parent, Toolbar &tbar) { | 87 | ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &parent, Toolbar &tbar) { |
88 | ToolbarItem * item; | 88 | ToolbarItem * item = 0; |
89 | 89 | ||
90 | unsigned int button_size = 24; | 90 | unsigned int button_size = 24; |
91 | if (tbar.theme().buttonSize() > 0) | 91 | if (tbar.theme().buttonSize() > 0) |