]> granicus.if.org Git - psmisc/commitdiff
pstree: initialize pid_set
authorVladislav Ivanishin <vlad@ispras.ru>
Thu, 6 Jun 2019 16:28:20 +0000 (19:28 +0300)
committerVladislav Ivanishin <vlad@ispras.ru>
Thu, 6 Jun 2019 16:28:57 +0000 (19:28 +0300)
src/pstree.c

index aaf3df77dcef1c9aad1d9d846bafd91162425414..e4fed4d9485e906e2cfd7e588a8c29dfca9feec0 100644 (file)
@@ -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[] = {