summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tkTest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTest.c b/generic/tkTest.c
index 88c50fa..782af01 100644
--- a/generic/tkTest.c
+++ b/generic/tkTest.c
@@ -2017,7 +2017,7 @@ CustomOptionSet(
}
}
if (internalPtr != NULL) {
- if (*valu) != NULL) {
+ if (*value != NULL) {
string = Tcl_GetStringFromObj(*value, &length);
newStr = ckalloc(length + 1);
strcpy(newStr, string);