Fix uninitialized variable in Image::fix_alpha_edges()

`core\io\image.cpp:3776:33: error: 'closest_color[0]' may be used uninitialized [-Werror=maybe-uninitialized]`
This commit is contained in:
K. S. Ernest (iFire) Lee 2023-10-29 22:50:56 -07:00 committed by K. S. Ernest (iFire) Lee
parent 9144457484
commit 9877fa5058

View file

@ -3773,7 +3773,7 @@ void Image::fix_alpha_edges() {
}
int closest_dist = max_dist;
uint8_t closest_color[3];
uint8_t closest_color[3] = { 0 };
int from_x = MAX(0, j - max_radius);
int to_x = MIN(width - 1, j + max_radius);