str*dup()->xstr*dup() where needed; library: openproc(): avoid closedir(NULL)
- There are multiple
str*dup()
calls with aNULL
check missing. Replaced those that appear harmful withxstr*dup()
. - Wrapped two unlikely occurrences of
closedir(NULL)
in a check. (Courtesy of gcc -fanalyzer.)
Edited by Roman Žilka