mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Merge pull request #7190 from libgit2/ethomson/config
config: Fix potential null value passed to %s
This commit is contained in:
@@ -1447,7 +1447,7 @@ int git_config_parse_bool(int *out, const char *value)
|
||||
return 0;
|
||||
}
|
||||
|
||||
git_error_set(GIT_ERROR_CONFIG, "failed to parse '%s' as a boolean value", value);
|
||||
git_error_set(GIT_ERROR_CONFIG, "failed to parse '%s' as a boolean", value ? value : "(null)");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user