libmemdraw: fix CID 154389 (uninitialized variable)

This commit is contained in:
Giacomo Tesio 2017-08-14 13:00:30 +02:00
parent 93c784fa3f
commit 8464d1a277
1 changed files with 38 additions and 37 deletions

View File

@ -1672,6 +1672,7 @@ readptr(Param *p, uint8_t *s, int y)
uint8_t *q;
USED(s);
memset(&b, 0, sizeof(Buffer);
q = p->bytermin + y*p->bwidth;
b.red = q; /* ptr to data */
b.grn = b.blu = b.grey = b.alpha = nil;