Обсуждение: pgsql: Fix latent bug in get_stats_option_name()

Поиск
Список
Период
Сортировка

pgsql: Fix latent bug in get_stats_option_name()

От
Heikki Linnakangas
Дата:
Fix latent bug in get_stats_option_name()

The function is supposed to look at the passed in 'arg' argument, but
peeks at the 'optarg' global variable that's part of getopt()
instead. It happened to work anyway, because all callers passed
'optarg' as the argument.

Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/d1da5f0e-0d68-47c9-a882-eb22f462752f@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c5f7820e5780f5be9cb406834108576b42e568f8

Modified Files
--------------
src/backend/tcop/postgres.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)