summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-01-05 17:00:48 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-01-05 17:00:48 (GMT)
commit5faa9a11695c74d40ca830ee4dcd68cfc9011e89 (patch)
tree13234e39d93cc0c6be718abb3676789a316e2355 /generic
parent2e67237b8b1fa6815d9e318f28d2f50674bafde6 (diff)
downloadtk-5faa9a11695c74d40ca830ee4dcd68cfc9011e89.zip
tk-5faa9a11695c74d40ca830ee4dcd68cfc9011e89.tar.gz
tk-5faa9a11695c74d40ca830ee4dcd68cfc9011e89.tar.bz2
Harmonized use of NULL for textPtr->afterSyncCmd
Diffstat (limited to 'generic')
-rw-r--r--generic/tkText.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 3389733..8dbe13e 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -2015,9 +2015,9 @@ DestroyText(
textPtr->tkwin = NULL;
textPtr->refCount--;
Tcl_DeleteCommandFromToken(textPtr->interp, textPtr->widgetCmd);
- if (textPtr->afterSyncCmd != 0){
+ if (textPtr->afterSyncCmd){
Tcl_DecrRefCount(textPtr->afterSyncCmd);
- textPtr->afterSyncCmd = 0;
+ textPtr->afterSyncCmd = NULL;
}
if (textPtr->refCount == 0) {
ckfree((char *) textPtr);