]> granicus.if.org Git - procps-ng/commit
ps: ensure functions not called prior to setREL macros
authorJim Warner <james.warner@comcast.net>
Wed, 6 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jun 2018 11:45:38 +0000 (21:45 +1000)
commit26ab9ae143051ab9ec59c9460f19bfb7c6f80140
tree9866e65f17d8d6d75246c18e17d376cda570793e
parent292a4dd6faa01bb32b91c1262c4fc92d82429d3a
ps: ensure functions not called prior to setREL macros

Under newlib design, ps must loop though all potential
print functions so as to gather the appropriate enum's
while establishing the 'relative' equivalent. The keys
to the setREL/chkREL macros are a NULL 'outbuf' param.

It's imperative that no other functions be called with
that NULL value. Unfortunately, several instances were
found where this was violated. They are now corrected!

Signed-off-by: Jim Warner <james.warner@comcast.net>
ps/output.c