diff --git a/backend/escl/escl.c b/backend/escl/escl.c index 7cc763dea..67df465f0 100644 --- a/backend/escl/escl.c +++ b/backend/escl/escl.c @@ -1083,7 +1083,7 @@ sane_read(SANE_Handle h, SANE_Byte *buf, SANE_Int maxlen, SANE_Int *len) SANE_FALSE); handler->scanner->work = next_page; handler->ps.last_frame = !next_page; - if (handler->ps.last_frame = SANE_TRUE) + if (handler->ps.last_frame == SANE_TRUE) status = SANE_STATUS_EOF; else status = SANE_STATUS_NO_DOCS;