From 0c5d185422587195542b9fdade49192662f3d0a9 Mon Sep 17 00:00:00 2001 From: Adam Murray Date: Thu, 31 Oct 2024 16:04:18 +1000 Subject: [PATCH] fix regression --- config.c | 2 -- trace2.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config.c b/config.c index 5ae8614e78628b..a11bb85da303a7 100644 --- a/config.c +++ b/config.c @@ -615,8 +615,6 @@ static int config_parse_pair(const char *key, const char *value, if (!strlen(key)) return error(_("empty config key")); - if (!value || !strlen(value)) - return error(_("empty config value")); if (git_config_parse_key(key, &canonical_name, NULL)) return -1; diff --git a/trace2.c b/trace2.c index f894532d05331c..5df43478b8fb22 100644 --- a/trace2.c +++ b/trace2.c @@ -759,7 +759,7 @@ void trace2_def_param_fl(const char *file, int line, const char *param, int j; const char *redacted; - if (!trace2_enabled) + if (!trace2_enabled || !value) return; redacted = redact_arg(value);