aboutsummaryrefslogtreecommitdiff
path: root/trace2.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-01-29 14:05:10 -0800
committerJunio C Hamano <gitster@pobox.com>2025-01-29 14:05:10 -0800
commitc5216a1bc68745ee81ba869adc6052ed892ebac1 (patch)
treebf56d6d15560576dddb2aa4f1022ca2f379be751 /trace2.c
parentd205f06ae07928b0c8b74930d76927a7e9b04781 (diff)
parent2fd367cf63cd5f94368340cc6fe1cd0a3fb021df (diff)
downloadgit-c5216a1bc68745ee81ba869adc6052ed892ebac1.tar.xz
Merge branch 'am/trace2-with-valueless-true'
The trace2 code was not prepared to show a configuration variable that is set to true using the valueless true syntax, which has been corrected. * am/trace2-with-valueless-true: trace2: prevent segfault on config collection with valueless true
Diffstat (limited to 'trace2.c')
-rw-r--r--trace2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace2.c b/trace2.c
index 82d16e2783..c23c0a227b 100644
--- a/trace2.c
+++ b/trace2.c
@@ -764,7 +764,7 @@ void trace2_def_param_fl(const char *file, int line, const char *param,
if (!trace2_enabled)
return;
- redacted = redact_arg(value);
+ redacted = value ? redact_arg(value) : NULL;
for_each_wanted_builtin (j, tgt_j)
if (tgt_j->pfn_param_fl)