diff --git a/plug-ins/twain/tw_func.c b/plug-ins/twain/tw_func.c index 8baa7b313a..79f2ac5296 100644 --- a/plug-ins/twain/tw_func.c +++ b/plug-ins/twain/tw_func.c @@ -696,7 +696,7 @@ cancelPendingTransfers(pTW_SESSION twSession) static int endImageTransfer(pTW_SESSION twSession, int *pendingCount) { - gboolean continueTransfers; + gboolean continueTransfers = FALSE; int exitCode = twSession->twRC; /* Have now exited the transfer for some reason... Figure out @@ -713,6 +713,10 @@ endImageTransfer(pTW_SESSION twSession, int *pendingCount) LogMessage("Failure received\n"); *pendingCount = endPendingTransfer(twSession); break; + + default: + *pendingCount = 0; + break; } /* Call the end transfer callback */