Skip to content

pstree: initialize pid_set

Vladislav Ivanishin requested to merge ivladak/psmisc:master into master

A trivial fix.

The probability of seeing the negative effects in practice is low (pid_set is compared to 1, not just != 0), but it's still a bug ;-).

This instance of an uninitialized use is not reported by mainline GCC run with -Wuninitialized (and apparently neither by Clang nor Coverity (?)).

Merge request reports