From 2515d809256c8503c0472223ac7685f3c2c50b80 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 13 Sep 2022 22:41:49 +1000 Subject: [PATCH] Initialize the locker! --- tests/ImageSharp.Tests/TestFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/TestFile.cs b/tests/ImageSharp.Tests/TestFile.cs index 4429e93da5..8a14a6be2e 100644 --- a/tests/ImageSharp.Tests/TestFile.cs +++ b/tests/ImageSharp.Tests/TestFile.cs @@ -34,7 +34,7 @@ namespace SixLabors.ImageSharp.Tests /// /// Used to ensure image loading is threadsafe. /// - private readonly object syncLock; + private readonly object syncLock = new(); /// /// The image bytes