Avoid warning about use of uninitialized variable

This commit is contained in:
David Capello 2022-09-28 15:56:26 -03:00
parent 008df4d03a
commit 00be9afcea

View File

@ -173,7 +173,7 @@ static void set_clipboard_image(Image* image,
// Copy image to the native clipboard
if (set_system_clipboard) {
color_t oldMask;
color_t oldMask = 0;
if (image) {
oldMask = image->maskColor();
if (!image_source_is_transparent)