fixes for errors/warnings found with cppcheck

This commit is contained in:
2009-12-26 20:23:13 +00:00
parent 5689ab3975
commit d5592fe254
15 changed files with 38 additions and 50 deletions

View File

@@ -296,7 +296,10 @@ short imb_savetarga(struct ImBuf * ibuf, char *name, int flags)
if (ibuf->cmap){
for (i = 0 ; i<ibuf->maxcol ; i++){
if (fwrite(((uchar *)(ibuf->cmap + i)) + 1,1,3,fildes) != 3) return (0);
if (fwrite(((uchar *)(ibuf->cmap + i)) + 1,1,3,fildes) != 3) {
fclose(fildes);
return (0);
}
}
}