mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
Merge branch 'ma/ts-cleanups'
Assorted bugfixes and clean-ups. * ma/ts-cleanups: ThreadSanitizer: add suppressions strbuf_setlen: don't write to strbuf_slopbuf pack-objects: take lock before accessing `remaining` convert: always initialize attr_action in convert_attrs
This commit is contained in:
7
color.c
7
color.c
@@ -338,6 +338,13 @@ static int check_auto_color(void)
|
||||
|
||||
int want_color(int var)
|
||||
{
|
||||
/*
|
||||
* NEEDSWORK: This function is sometimes used from multiple threads, and
|
||||
* we end up using want_auto racily. That "should not matter" since
|
||||
* we always write the same value, but it's still wrong. This function
|
||||
* is listed in .tsan-suppressions for the time being.
|
||||
*/
|
||||
|
||||
static int want_auto = -1;
|
||||
|
||||
if (var < 0)
|
||||
|
||||
Reference in New Issue
Block a user