diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-09 14:06:25 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-09 14:06:25 +0000 |
| commit | b6f52dec88ec0f22d51fab75c72b431e4419edc0 (patch) | |
| tree | 9fe3a666dec6e9ef2c5d2796e837f282a55c22d2 /fluid | |
| parent | a8f049239cfd349aa44ee2531386a21fbc12634d (diff) | |
Widget variables we not being initialized to NULL.
git-svn-id: file:///fltk/svn/fltk/trunk@79 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index cf266cc30..ecc5eb4c3 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget_Type.cxx,v 1.5 1998/11/05 16:04:43 mike Exp $" +// "$Id: Fl_Widget_Type.cxx,v 1.6 1998/11/09 14:06:25 mike Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -1210,7 +1210,7 @@ void Fl_Widget_Type::write_static() { write_c("\n"); if (!public_) write_c("static "); else write_h("extern %s *%s;\n", t, c); - write_c("%s *%s;\n", t, c); + write_c("%s *%s=NULL;\n", t, c); } if (callback() && !is_name(callback())) { // see if 'o' or 'v' used, to prevent unused argument warnings: @@ -1699,5 +1699,5 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) { } // -// End of "$Id: Fl_Widget_Type.cxx,v 1.5 1998/11/05 16:04:43 mike Exp $". +// End of "$Id: Fl_Widget_Type.cxx,v 1.6 1998/11/09 14:06:25 mike Exp $". // |
