Suspicious code in a conditional statement
From: Dmitry <wipedout_at_yandex.ru>
Date: Mon, 27 Jun 2011 18:22:54 +0400
Hey.
Currently svn_error_t * getallstatus(void * baton, const char * path, const svn_client_status_t * status, apr_pool_t * /*pool*/) contains the following code:
if ((sb->SubStat->Author[0] == 0)&&(status->repos_relpath)&&(status->repos_relpath))
here there're identical conditions on the left and on the right of "&&". Perhaps one of those checks is misspelled or unneeded. This defect was found with PVS-Studio static analysis tool.
Best wishes.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.