diff --git a/bin/ios-mapfile-statistics b/bin/ios-mapfile-statistics index 98d33429b900..07f3f0aa68b4 100755 --- a/bin/ios-mapfile-statistics +++ b/bin/ios-mapfile-statistics @@ -17,7 +17,7 @@ sub HELP_MESSAGE { print <) { +open(INPUT, '<', $ARGV[0]) || die "Could not open $ARGV[0]: $!\n"; + +while () { if ($state == 0 && m!^# Object files:!) { $state = 1; } elsif ($state == 1 && m!^\[ *([0-9]+)\] .*/([-_a-z0-9]+\.a)\(.*!i) {