From 4b925a785bd9712f9a30a8b30497e6966993ae8e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 10 Jun 2016 19:00:25 -0500 Subject: Missing parentheses. (Oops.) --- toys/pending/netstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending') 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); } -- cgit v1.2.3