[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

subversion-1.10.2/subversion/mod_dav_svn/reports/list.c:273L bad if ?

From: David Binderman <dcb314_at_hotmail.com>
Date: Sun, 22 Jul 2018 10:18:53 +0000

Hello there,

subversion-1.10.2/subversion/mod_dav_svn/reports/list.c:273]: (style) Expression is always false because 'else if' condition matches previous condition at line 271.

Source code is

         else if (strcmp(name, "DAV:" SVN_DAV__VERSION_NAME) == 0)
            lrb.dirent_fields |= SVN_DIRENT_CREATED_REV;
          else if (strcmp(name, "DAV:" SVN_DAV__CREATIONDATE) == 0)
            lrb.dirent_fields |= SVN_DIRENT_TIME;


David Binderman
Received on 2018-07-22 18:27:15 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.