From c427e4db4bbe3c6dc11bb8e5739a964fee6ac381 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 1 Aug 2012 14:49:34 -0400 Subject: [PATCH 1/1] don't crash if record is dumped because it's missing its -ot Signed-off-by: Galen Charlton --- marc_cleanup | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/marc_cleanup b/marc_cleanup index 4d7354e..c26525c 100755 --- a/marc_cleanup +++ b/marc_cleanup @@ -93,7 +93,7 @@ while ( buildrecord() ) { until ($ptr == $#record) { # get datafield/tag data if we have it $rc = stow_record_data() if ($c->{'renumber-from'} and $c->{'original-tag'}); - return $rc if $rc; + next if $rc; # naked ampersands if ($record[$ptr] =~ /&/ && $record[$ptr] !~ /&\w+?;/) -- 1.7.2.5