Fix variable name and comment
Should match the name of the related GUC variable. Discussion: https://www.postgresql.org/message-id/da4a680a-5d8a-4663-a5c8-a3ccbf23394a@eisentraut.org
This commit is contained in:
parent
f246c48ac4
commit
541e8f14a1
|
@ -115,8 +115,8 @@ char *Log_destination_string = NULL;
|
|||
bool syslog_sequence_numbers = true;
|
||||
bool syslog_split_messages = true;
|
||||
|
||||
/* Processed form of backtrace_symbols GUC */
|
||||
static char *backtrace_symbol_list;
|
||||
/* Processed form of backtrace_functions GUC */
|
||||
static char *backtrace_function_list;
|
||||
|
||||
#ifdef HAVE_SYSLOG
|
||||
|
||||
|
@ -831,13 +831,13 @@ matches_backtrace_functions(const char *funcname)
|
|||
{
|
||||
const char *p;
|
||||
|
||||
if (!backtrace_symbol_list || funcname == NULL || funcname[0] == '\0')
|
||||
if (!backtrace_function_list || funcname == NULL || funcname[0] == '\0')
|
||||
return false;
|
||||
|
||||
p = backtrace_symbol_list;
|
||||
p = backtrace_function_list;
|
||||
for (;;)
|
||||
{
|
||||
if (*p == '\0') /* end of backtrace_symbol_list */
|
||||
if (*p == '\0') /* end of backtrace_function_list */
|
||||
break;
|
||||
|
||||
if (strcmp(funcname, p) == 0)
|
||||
|
@ -2180,7 +2180,7 @@ check_backtrace_functions(char **newval, void **extra, GucSource source)
|
|||
void
|
||||
assign_backtrace_functions(const char *newval, void *extra)
|
||||
{
|
||||
backtrace_symbol_list = (char *) extra;
|
||||
backtrace_function_list = (char *) extra;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue