Menu

#150 bltUnixDnd.c:1251]: (style) Same expression on both sides of '&&'

open
nobody
None
5
2016-09-06
2016-09-06
dcb
No

Source code is

if ((tokenPtr->tkwin != NULL) && (tokenPtr->tkwin != NULL) &&
!(tokenPtr->flags & TOKEN_REDRAW)) {

Maybe better code

if ((tokenPtr->tkwin != NULL) && (tokenPtr->tkwin[0] != NULL) &&
!(tokenPtr->flags & TOKEN_REDRAW)) {

Discussion


Log in to post a comment.