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:
parent
37c1db12f3
commit
fdc59e4e7e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user