X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=shape.c;fp=shape.c;h=f29bd6ed0a6edcbb59d68d4b784a193f71ee757e;hp=75424ef9ed104e9468e7306e21a0df264b113dba;hb=af711b4e66c96c112086a442ea09094643bd8d71;hpb=2b5dd5bc0eb1739dd744de6f565d0f3a7ae02c95 diff --git a/shape.c b/shape.c index 75424ef..f29bd6e 100644 --- a/shape.c +++ b/shape.c @@ -7,7 +7,7 @@ get_shape(SDL_Surface *img, struct shape *s) { int x, y; uint16_t *px, transp; - uint32_t bits, bit, *p; + uint32_t bits = 0, bit, *p; if(img->format->BytesPerPixel != 2) { fprintf(stderr, "get_shape(): not a 16-bit image!\n");