Drop unused variable

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Check file size before checking content

Signed-off-by: Sven Strickroth <email@cs-ware.de>