Thread: utils/misc: Simplify search of end of argv in save_ps_display_args()

utils/misc: Simplify search of end of argv in save_ps_display_args()

From
Alexander Kuleshov
Date:
Hello,

Attached patch provides trivial simplification of the search of end of
the argv[] area by replacing for() loop with calculation based on
argc.

Attachment

Re: utils/misc: Simplify search of end of argv in save_ps_display_args()

From
Alvaro Herrera
Date:
Alexander Kuleshov wrote:
> Hello,
> 
> Attached patch provides trivial simplification of the search of end of
> the argv[] area by replacing for() loop with calculation based on
> argc.

Uhm.  Doesn't this break the very same thing that the comment explains
it's doing?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services