diff --git a/funcs/saturation.c b/funcs/saturation.c index e36ab08c..bb7f007d 100644 --- a/funcs/saturation.c +++ b/funcs/saturation.c @@ -48,7 +48,7 @@ int sz, idx; sz = s->width * s->height; -if (FIMG_TYPE_RGB != img->type) { +if (FIMG_TYPE_RGB != s->type) { fprintf(stderr, "%s bad type\n", __func__); return -6; }