psmisc/0009-pstree-initialize-pid_set.patch
Jan Rybar 55f7cc57ed Backport of upstream patches since v23.2 release
Added support of peekfd on aarch64
2019-09-06 14:44:27 +02:00

26 lines
651 B
Diff

From 8a9d81dbbf3fc8159920335777d862d543995499 Mon Sep 17 00:00:00 2001
From: Vladislav Ivanishin <vlad@ispras.ru>
Date: Thu, 6 Jun 2019 19:28:20 +0300
Subject: [PATCH 09/11] pstree: initialize pid_set
---
src/pstree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pstree.c b/src/pstree.c
index aaf3df7..e4fed4d 100644
--- a/src/pstree.c
+++ b/src/pstree.c
@@ -1148,7 +1148,7 @@ int main(int argc, char **argv)
pid_t pid, highlight;
char termcap_area[1024];
char *termname, *endptr;
- int c, pid_set;
+ int c, pid_set = 0;
enum ns_type nsid = NUM_NS;
struct option options[] = {
--
2.20.1