tree-wide: check if errno is greater than zero (2)
Compare errno with zero in a way that tells gcc that (if the condition is true) errno is positive.
This commit is contained in:
@@ -1075,7 +1075,7 @@ static int item_do_children(Item *i, const char *path, action_t action) {
|
||||
errno = 0;
|
||||
de = readdir(d);
|
||||
if (!de) {
|
||||
if (errno != 0 && r == 0)
|
||||
if (errno > 0 && r == 0)
|
||||
r = -errno;
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user