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

Started by Alexander Kuleshovabout 10 years ago2 messageshackers
Jump to latest
#1Alexander Kuleshov
kuleshovmail@gmail.com

Hello,

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

Attachments:

simplify-ps-status.patchtext/x-patch; charset=US-ASCII; name=simplify-ps-status.patchDownload+2-5
#2Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Alexander Kuleshov (#1)
Re: utils/misc: Simplify search of end of argv in save_ps_display_args()

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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers