error checking

This commit is contained in:
tth 2021-03-11 18:32:42 +01:00
parent cd1f278d45
commit 5f4e6e8fa8
1 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,6 @@ else {
fp = stdout; /* XXX */
for (y=0; y<src->height; y+=steps) {
for (x=0; x<src->width; x+=steps) {
fimg_get_rgb(src, x, y, rgb);
fprintf(fp, "%d %d ", x, y);
fprintf(fp, "%f %f %f\n", rgb[0], rgb[1], rgb[2]);
@ -120,7 +119,9 @@ if (norm > 0.0) {
}
foo = export_as_machinable(&fimg, dstname, steps, 0);
if (foo) {
fprintf(stderr,"%s: err %d on export\n", __func__, foo);
}
fimg_destroy(&fimg);
return 0;