Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 541e8f1

Browse files
committed
Fix variable name and comment
Should match the name of the related GUC variable. Discussion: https://www.postgresql.org/message-id/[email protected]
1 parent f246c48 commit 541e8f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/backend/utils/error/elog.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ char *Log_destination_string = NULL;
115115
bool syslog_sequence_numbers = true;
116116
bool syslog_split_messages = true;
117117

118-
/* Processed form of backtrace_symbols GUC */
119-
static char *backtrace_symbol_list;
118+
/* Processed form of backtrace_functions GUC */
119+
static char *backtrace_function_list;
120120

121121
#ifdef HAVE_SYSLOG
122122

@@ -831,13 +831,13 @@ matches_backtrace_functions(const char *funcname)
831831
{
832832
const char *p;
833833

834-
if (!backtrace_symbol_list || funcname == NULL || funcname[0] == '\0')
834+
if (!backtrace_function_list || funcname == NULL || funcname[0] == '\0')
835835
return false;
836836

837-
p = backtrace_symbol_list;
837+
p = backtrace_function_list;
838838
for (;;)
839839
{
840-
if (*p == '\0') /* end of backtrace_symbol_list */
840+
if (*p == '\0') /* end of backtrace_function_list */
841841
break;
842842

843843
if (strcmp(funcname, p) == 0)
@@ -2180,7 +2180,7 @@ check_backtrace_functions(char **newval, void **extra, GucSource source)
21802180
void
21812181
assign_backtrace_functions(const char *newval, void *extra)
21822182
{
2183-
backtrace_symbol_list = (char *) extra;
2183+
backtrace_function_list = (char *) extra;
21842184
}
21852185

21862186
/*

0 commit comments

Comments
 (0)