diff options
author | fvogel <fvogel@noemail.net> | 2016-01-05 17:00:48 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2016-01-05 17:00:48 (GMT) |
commit | 7911c836f5105f80a0698cf49c5ec048225eea94 (patch) | |
tree | 13234e39d93cc0c6be718abb3676789a316e2355 /generic | |
parent | aec3f01a7730efb378d5aaeedd8ba03791d30549 (diff) | |
download | tk-7911c836f5105f80a0698cf49c5ec048225eea94.zip tk-7911c836f5105f80a0698cf49c5ec048225eea94.tar.gz tk-7911c836f5105f80a0698cf49c5ec048225eea94.tar.bz2 |
Harmonized use of NULL for textPtr->afterSyncCmd
FossilOrigin-Name: 0eb8f1f5e09b86aceeb6a52d9d4ac5ba5cf627cc
Diffstat (limited to 'generic')
-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); |