]> granicus.if.org Git - procps-ng/commit
top: again avoid multiple evaluation of macro argument
authorJim Warner <james.warner@comcast.net>
Tue, 3 Oct 2017 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Fri, 6 Oct 2017 22:07:17 +0000 (09:07 +1100)
commit53a1b9650bcbbfd5ee161ffa2ae3250530dc80a2
tree06c3869b3a0f8920a7600598159dc51bdd0ccb51
parente55016def5ff7def99776e29c6940537d4773efc
top: again avoid multiple evaluation of macro argument

Before top was modified to exploit the new <pids> api,
there was protection in that task_show() makeVAR macro
to avoid multiple evaluation of this macro's argument.

But, in that commit referenced below, such a safeguard
was lost. This commit simply restores proper behavior.

Reference(s);
. offending change
commit 77dc22b9101af39fc30306e36d65cad2b396cc9e

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