summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-03-26 12:32:05 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-03-26 12:32:05 (GMT)
commitb5c1cfbc36088740e5aa34d48ace8689d137f6f4 (patch)
tree9abb561c937f423c6f5a87b94cf00364201c2efe /generic
parenta76478a2b9d957fc39ad6a28c43d3b27810539e8 (diff)
downloadtk-b5c1cfbc36088740e5aa34d48ace8689d137f6f4.zip
tk-b5c1cfbc36088740e5aa34d48ace8689d137f6f4.tar.gz
tk-b5c1cfbc36088740e5aa34d48ace8689d137f6f4.tar.bz2
fix scoping of buf (introduced with fix for [Bug 2809525]
Diffstat (limited to 'generic')
-rw-r--r--generic/tkColor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkColor.c b/generic/tkColor.c
index 5866dfd..a5a1136 100644
--- a/generic/tkColor.c
+++ b/generic/tkColor.c
@@ -820,8 +820,8 @@ TkParseColor(display, map, name, color)
CONST char* name; /* String to be parsed */
XColor * color;
{
+ char buf[14];
if (*name == '#') {
- char buf[14];
buf[0] = '#'; buf[13] = '\0';
if (!*(++name) || !*(++name) || !*(++name)) {
/* Not at least 3 hex digits, so invalid */