diff options
author | jenglish <jenglish@flightlab.com> | 2012-07-02 17:38:52 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2012-07-02 17:38:52 (GMT) |
commit | 6ade6907c8825551da330908c6dec95a6de68cfc (patch) | |
tree | 550fb128f4cccd9bdd93cdd422bccc660b4d02ce /generic/ttk/ttkPanedwindow.c | |
parent | d244749081139cd68d5004e67c30a2ec6f99682e (diff) | |
download | tk-6ade6907c8825551da330908c6dec95a6de68cfc.zip tk-6ade6907c8825551da330908c6dec95a6de68cfc.tar.gz tk-6ade6907c8825551da330908c6dec95a6de68cfc.tar.bz2 |
ttk::*: Ensure that all tables passed to Tcl_GetIndexFromObj{Struct}
are statically allocated. Caught by Michael Kirkham.
Diffstat (limited to 'generic/ttk/ttkPanedwindow.c')
-rw-r--r-- | generic/ttk/ttkPanedwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkPanedwindow.c b/generic/ttk/ttkPanedwindow.c index 065774e..b301372 100644 --- a/generic/ttk/ttkPanedwindow.c +++ b/generic/ttk/ttkPanedwindow.c @@ -713,7 +713,7 @@ static int PanedForgetCommand( static int PanedIdentifyCommand( void *recordPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) { - const char *whatTable[] = { "element", "sash", NULL }; + static const char *whatTable[] = { "element", "sash", NULL }; enum { IDENTIFY_ELEMENT, IDENTIFY_SASH }; int what = IDENTIFY_SASH; Paned *pw = recordPtr; |