Fixed undefined value on local variable

This commit is contained in:
Xavi Del Campo 2020-01-31 22:21:19 +01:00
parent 25aedbde21
commit 10e46fc09e
1 changed files with 81 additions and 79 deletions

View File

@ -71,6 +71,8 @@ int write_bitmap_headers(FILE *f, int w, int h, int bpp)
r = w;
else if(bpp == 4)
r = w / 2;
else
r = 0;
ret = r;