aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathias <mathias>2005-02-04 17:27:39 (GMT)
committermathias <mathias>2005-02-04 17:27:39 (GMT)
commit17abbcb3a71c232569f1dfcc7c7dcea2318c7a97 (patch)
treea3558e64b72a68426a37921ce573940ffc56edb3 /src
parent7b2d1c12f2c47242a6297df08a8c5692de216539 (diff)
downloadfluxbox-17abbcb3a71c232569f1dfcc7c7dcea2318c7a97.zip
fluxbox-17abbcb3a71c232569f1dfcc7c7dcea2318c7a97.tar.bz2
fixed uninitialized pointer which could lead to segfaults when the user
specifies nonexistent/invalid tool-names in the init-file
Diffstat (limited to 'src')
-rw-r--r--src/ToolFactory.cc2
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
87ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &parent, Toolbar &tbar) { 87ToolbarItem *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)