From: bbaetz%student.usyd.edu.au <> Date: Thu, 11 Jul 2002 18:46:08 +0000 (+0000) Subject: Bug 156844 - 'use of uninitialized value in string eq' warning X-Git-Tag: bugzilla-2.17.1~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf9625d073867b46db5eaa83f8d2a1f395cbe65;p=thirdparty%2Fbugzilla.git Bug 156844 - 'use of uninitialized value in string eq' warning r=jouni x2 --- diff --git a/process_bug.cgi b/process_bug.cgi index afed412a37..f061d4455f 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -930,6 +930,8 @@ foreach my $id (@idlist) { my %oldhash; my $i = 0; foreach my $col (@::log_columns) { + # Consider NULL db entries to be equivalent to the empty string + $oldvalues[$i] ||= ''; $oldhash{$col} = $oldvalues[$i]; if (exists $::FORM{$col}) { CheckCanChangeField($col, $id, $oldvalues[$i], $::FORM{$col});