about summary refs log tree commit diff
path: root/px.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-03-21 23:56:09 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-03-21 23:56:09 +0100
commitae074a9a2e57d727f04f99f90ca0856ecc81ee08 (patch)
tree4e42a7a3a5176d656d1e20774ed08b3016f8b9ef /px.c
parent67126370b3487d8905f291e17d70ffbbab796a70 (diff)
downloadpx-ae074a9a2e57d727f04f99f90ca0856ecc81ee08.tar.gz
px-ae074a9a2e57d727f04f99f90ca0856ecc81ee08.tar.xz
px-ae074a9a2e57d727f04f99f90ca0856ecc81ee08.zip
fix px without arguments
Diffstat (limited to 'px.c')
-rw-r--r--px.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/px.c b/px.c
index bd2537a..5776476 100644
--- a/px.c
+++ b/px.c
@@ -50,7 +50,7 @@ main(int argc, char *argv[])
 	for (; *result; result++) {
 		proc_t *p = *result;
 
-		if (argc > 0) {
+		if (argc > 1) {
 			for (int i = 1; i < argc; i++)
 				if (strstr(p->cmd, argv[i]))
 					goto match;