diff options
author | fvogel <fvogelnew1@free.fr> | 2016-01-05 17:00:48 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-01-05 17:00:48 (GMT) |
commit | 5faa9a11695c74d40ca830ee4dcd68cfc9011e89 (patch) | |
tree | 13234e39d93cc0c6be718abb3676789a316e2355 | |
parent | 2e67237b8b1fa6815d9e318f28d2f50674bafde6 (diff) | |
download | tk-5faa9a11695c74d40ca830ee4dcd68cfc9011e89.zip tk-5faa9a11695c74d40ca830ee4dcd68cfc9011e89.tar.gz tk-5faa9a11695c74d40ca830ee4dcd68cfc9011e89.tar.bz2 |
Harmonized use of NULL for textPtr->afterSyncCmd
-rw-r--r-- | generic/tkText.c | 4 |
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); |