From 22ca8fd79dbb3a3a899fc33dd9a926a4124e276e Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 20 Jul 1999 16:01:57 +0000 Subject: [PATCH] fixed a stupid bug git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1093 379699f6-c40d-0410-875b-85095c16579e --- jode/javaDependencies.pl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }