summaryrefslogtreecommitdiff
path: root/src/Fl_File_Chooser.fl
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-12-30 10:13:17 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-12-30 10:13:17 +0000
commitd3db965083a783672ce39c36883c194a403abdac (patch)
tree0c0c73ef968f7b84fcb5c2f7b59cdb83061287b8 /src/Fl_File_Chooser.fl
parent10fae2dd8a3b2383d3ec004d68a46fd945a8d4d6 (diff)
Fixed a few memory faults found by Valgrind (yes, I finally got my Linux
machine up and running again) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.fl')
-rw-r--r--src/Fl_File_Chooser.fl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl
index 982811bae..8cbd9f588 100644
--- a/src/Fl_File_Chooser.fl
+++ b/src/Fl_File_Chooser.fl
@@ -283,7 +283,7 @@ showChoiceCB();} {}
Function {ok_label(const char *l)} {return_type void
} {
code {okButton->label(l);
-int w, h;
+int w=0, h=0;
okButton->measure_label(w, h);
okButton->resize(cancelButton->x() - 50 - w, cancelButton->y(),
w + 40, 25);