Merge pull request #84173 from fire/initialize-colours

Fix uninitialized variable in `Image::fix_alpha_edges()`
This commit is contained in:
Rémi Verschelde 2023-10-30 10:20:08 +01:00
commit 563e0eb534
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

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);