mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
fts: Stop abusing the comma operator.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D49624
(cherry picked from commit 5abef29833)
This commit is contained in:
parent
84ed51c412
commit
9c84aea414
1 changed files with 5 additions and 3 deletions
|
|
@ -901,10 +901,12 @@ fts_stat(FTS *sp, FTSENT *p, int follow, int dfd)
|
|||
int saved_errno;
|
||||
const char *path;
|
||||
|
||||
if (dfd == -1)
|
||||
path = p->fts_accpath, dfd = AT_FDCWD;
|
||||
else
|
||||
if (dfd == -1) {
|
||||
path = p->fts_accpath;
|
||||
dfd = AT_FDCWD;
|
||||
} else {
|
||||
path = p->fts_name;
|
||||
}
|
||||
|
||||
/* If user needs stat info, stat buffer already allocated. */
|
||||
sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue