mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
Coverity: fix WRaster convert uninitialized scalar variable
This commit is contained in:
committed by
Carlos R. Mafra
parent
d4ee17f0b5
commit
52a623729d
@@ -627,6 +627,10 @@ static RXImage *image2StandardPseudoColor(RContext * ctx, RImage * image)
|
||||
RDestroyXImage(ctx, ximg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
memset(err, 0, 3 * (image->width + 2) * sizeof(short));
|
||||
memset(nerr, 0, 3 * (image->width + 2) * sizeof(short));
|
||||
|
||||
for (x = 0, x1 = 0; x < image->width * 3; x1 += channels - 3) {
|
||||
err[x++] = ptr[x1++];
|
||||
err[x++] = ptr[x1++];
|
||||
|
||||
Reference in New Issue
Block a user