Skip to content

Commit 0c5d185

Browse files
committed
fix regression
1 parent 6927e8c commit 0c5d185

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

config.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,6 @@ static int config_parse_pair(const char *key, const char *value,
615615

616616
if (!strlen(key))
617617
return error(_("empty config key"));
618-
if (!value || !strlen(value))
619-
return error(_("empty config value"));
620618
if (git_config_parse_key(key, &canonical_name, NULL))
621619
return -1;
622620

trace2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ void trace2_def_param_fl(const char *file, int line, const char *param,
759759
int j;
760760
const char *redacted;
761761

762-
if (!trace2_enabled)
762+
if (!trace2_enabled || !value)
763763
return;
764764

765765
redacted = redact_arg(value);

0 commit comments

Comments
 (0)