blend test: fix uninitialized var

This commit is contained in:
nick black 2020-02-08 22:29:19 -05:00
parent 4f6ee8a463
commit 0a6fddb549
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -155,9 +155,10 @@ TEST_CASE("ChannelBlendDefaultRight") {
channel_set_rgb(&c1, 0x80, 0x40, 0x20);
CHECK(!channel_default_p(c1));
CHECK(channel_default_p(c2));
unsigned blends;
unsigned blends = 0;
uint32_t c = channels_blend(c1, c2, &blends);
CHECK(channel_default_p(c));
CHECK(1 == blends);
c = channels_blend(c1, c2, &blends);
CHECK(!channel_default_p(c));
unsigned r, g, b;