fs_darwin fix warning: '&&' within '||'

place parentheses around the '&&' expression to silence this warning

Change-Id: Ie6152d2371ed65f57e6e75c9541263a5e1511513
Reviewed-on: https://review.haiku-os.org/c/1532
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
John Scipione 2019-06-24 22:39:29 -07:00 committed by Jérôme Duval
parent 37c1db12f3
commit fdc59e4e7e
1 changed files with 2 additions and 2 deletions

View File

@ -471,10 +471,10 @@ linkat(int oldFD, const char *oldPath, int newFD, const char *newPath,
bool ignoreOldFD = false;
bool ignoreNewFD = false;
if (oldFD == AT_FDCWD || oldPath != NULL && oldPath[0] == '/')
if (oldFD == AT_FDCWD || (oldPath != NULL && oldPath[0] == '/'))
ignoreOldFD = true;
if (newFD == AT_FDCWD || newPath != NULL && newPath[0] == '/')
if (newFD == AT_FDCWD || (newPath != NULL && newPath[0] == '/'))
ignoreNewFD = true;
if (ignoreOldFD && ignoreNewFD) {