summaryrefslogtreecommitdiffstats
path: root/generic/tkTest.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkTest.c')
-rw-r--r--generic/tkTest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTest.c b/generic/tkTest.c
index 88aba2b..6712017 100644
--- a/generic/tkTest.c
+++ b/generic/tkTest.c
@@ -937,7 +937,7 @@ TestobjconfigObjCmd(
recordPtr->index = 0;
recordPtr->colorPtr = NULL;
recordPtr->tkfont = NULL;
- recordPtr->bitmap = 0;
+ recordPtr->bitmap = None;
recordPtr->border = NULL;
recordPtr->relief = TK_RELIEF_FLAT;
recordPtr->cursor = NULL;
@@ -1864,7 +1864,7 @@ TestpropObjCmd(
w, propName, 0, 100000, False, AnyPropertyType,
&actualType, &actualFormat, &length,
&bytesAfter, &property);
- if ((result == Success) && actualType) {
+ if ((result == Success) && (actualType != None)) {
if ((actualFormat == 8) && (actualType == XA_STRING)) {
for (p = property; ((unsigned long)(p-property)) < length; p++) {
if (*p == 0) {