Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Murray <ad@canva.com>
  • Loading branch information
ad-murray committed Oct 31, 2024
1 parent 28f20c2 commit 25cd431
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion trace2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 25cd431

Please sign in to comment.