[RFC] Fix clang analysis warnings. (5)

Continue #1478.
Get warning count back to zero.
In your previous fixes the names of the local copies of global variables were all prefixed with a `l_`. Why the change?