summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkImage.c
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2012-07-02 17:38:52 (GMT)
committerjenglish <jenglish@flightlab.com>2012-07-02 17:38:52 (GMT)
commit6ade6907c8825551da330908c6dec95a6de68cfc (patch)
tree550fb128f4cccd9bdd93cdd422bccc660b4d02ce /generic/ttk/ttkImage.c
parentd244749081139cd68d5004e67c30a2ec6f99682e (diff)
downloadtk-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/ttkImage.c')
-rw-r--r--generic/ttk/ttkImage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkImage.c b/generic/ttk/ttkImage.c
index c3b55e9..2b12864 100644
--- a/generic/ttk/ttkImage.c
+++ b/generic/ttk/ttkImage.c
@@ -314,7 +314,7 @@ Ttk_CreateImageElement(
const char *elementName,
int objc, Tcl_Obj *const objv[])
{
- const char *optionStrings[] =
+ static const char *optionStrings[] =
{ "-border","-height","-padding","-sticky","-width",NULL };
enum { O_BORDER, O_HEIGHT, O_PADDING, O_STICKY, O_WIDTH };