diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-01-29 14:05:10 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-01-29 14:05:10 -0800 |
| commit | c5216a1bc68745ee81ba869adc6052ed892ebac1 (patch) | |
| tree | bf56d6d15560576dddb2aa4f1022ca2f379be751 /trace2.c | |
| parent | d205f06ae07928b0c8b74930d76927a7e9b04781 (diff) | |
| parent | 2fd367cf63cd5f94368340cc6fe1cd0a3fb021df (diff) | |
| download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
