diff --git a/jode/javaDependencies.pl.in b/jode/javaDependencies.pl.in index 64ddab7..8717afa 100755 --- a/jode/javaDependencies.pl.in +++ b/jode/javaDependencies.pl.in @@ -46,7 +46,8 @@ sub readInBuff ($) { my $count = $_[0]; my $offset = 0; while ($count > 0) { - my $result = read FILE, $buff, $count, $offset or 0; + my $result; + $result = read FILE, $buff, $count, $offset or return 0; $offset += $result; $count -= $result; }