diff options
author | fvogel <fvogelnew1@free.fr> | 2012-07-19 21:34:47 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-07-19 21:34:47 (GMT) |
commit | 6bb4076e01e60d171495eac083085ec0b778f139 (patch) | |
tree | f0569a80c445c705e8bd86960308902afb764b73 /unix | |
parent | 97efe32de3dcc2c8a57828b37afbafc46fc2fcfe (diff) | |
parent | 0336e245e130f168b0f8d57c18f0da7bccaeb16d (diff) | |
download | tk-6bb4076e01e60d171495eac083085ec0b778f139.zip tk-6bb4076e01e60d171495eac083085ec0b778f139.tar.gz tk-6bb4076e01e60d171495eac083085ec0b778f139.tar.bz2 |
Bug 3545457: Crash on packing a menubutton
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixMenubu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tkUnixMenubu.c b/unix/tkUnixMenubu.c index 35c7da8..785fb75 100644 --- a/unix/tkUnixMenubu.c +++ b/unix/tkUnixMenubu.c @@ -74,10 +74,12 @@ TkpDisplayMenuButton(clientData) * compiler warning. */ int y = 0; register Tk_Window tkwin = mbPtr->tkwin; - int width, height, fullWidth, fullHeight; + int fullWidth, fullHeight; int textXOffset, textYOffset; int imageWidth, imageHeight; - int imageXOffset, imageYOffset; /* image information that will be used to + int imageXOffset, imageYOffset; + int width = 0, height = 0; + /* image information that will be used to * restrict disabled pixmap as well */ int haveImage = 0, haveText = 0; |