aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-06-10 19:00:25 -0500
committerRob Landley <rob@landley.net>2016-06-10 19:00:25 -0500
commit4b925a785bd9712f9a30a8b30497e6966993ae8e (patch)
treeb64ac5003a09c8198972e8e01e96b9ab2cb6431b /toys
parent5cf208c2ec9639bbfba32a1b702d004d7a45f954 (diff)
downloadtoybox-4b925a785bd9712f9a30a8b30497e6966993ae8e.tar.gz
Missing parentheses. (Oops.)
Diffstat (limited to 'toys')
-rw-r--r--toys/pending/netstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/netstat.c b/toys/pending/netstat.c
index c77f49f5..bb72f461 100644
--- a/toys/pending/netstat.c
+++ b/toys/pending/netstat.c
@@ -424,7 +424,7 @@ static void scan_pid_inodes(char *path)
if (!isdigit(entry->d_name[0])) continue;
snprintf(link_name, sizeof(link_name), "%s/%s", path, entry->d_name);
- if ((link = xreadlink(link_name) && (inode = ss_inode(link))!=-1)
+ if ((link = xreadlink(link_name)) && (inode = ss_inode(link))!=-1)
add2list(inode);
free(link);
}