diff options
Diffstat (limited to 'unix/tkUnixButton.c')
-rw-r--r-- | unix/tkUnixButton.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tkUnixButton.c b/unix/tkUnixButton.c index c4c9c44..de6cf2a 100644 --- a/unix/tkUnixButton.c +++ b/unix/tkUnixButton.c @@ -330,7 +330,8 @@ TkButton * TkpCreateButton( Tk_Window tkwin) { - UnixButton *butPtr = (UnixButton *) ckalloc(sizeof(UnixButton)); + UnixButton *butPtr = ckalloc(sizeof(UnixButton)); + return (TkButton *) butPtr; } |