Closed Bug 72924 Opened 23 years ago Closed 23 years ago

"my" variable $fieldid masks earlier declaration in same scope at

Categories

(Bugzilla :: Bugzilla-General, defect, P2)

defect

Tracking

()

RESOLVED DUPLICATE of bug 57848

People

(Reporter: timeless, Assigned: justdave)

References

()

Details

Attachments

(1 file)

Running /usr/bin/perl -cw -I/home/ianh/tinderbox/mozilla/webtools/bugzilla/ 
-I/home/ianh/tinderbox/perllibs/lib/site_perl/5.005/i386-linux/ 
-I/home/ianh/tinderbox/perllibs/lib/site_perl/5.005/move.pl; Results:
move.pl has compilable perl syntax.
Warnings: 
"my" variable $fieldid masks earlier declaration in same scope at
  /home/ianh/tinderbox/mozilla/webtools/bugzilla/move.pl line 112 (#1)

(W) A lexical variable has been redeclared in the current scope or statement,
effectively eliminating all access to the previous instance.  This is almost
always a typographical error.  Note that the earlier variable will still exist
until the end of the scope or until all closure referents to it are destroyed
Attached patch PatchSplinter Review
That one's fairly easy... just declare the variable at the begining of the if
block and use it later.
Keywords: patch
Target Milestone: --- → Bugzilla 2.16
Priority: -- → P2
This was already fixed in bug 57848.

*** This bug has been marked as a duplicate of 57848 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
moving to Bugzilla product
reassign to default owner/qa for INVALID/WONTFIX/WORKSFORME/DUPLICATE
Assignee: endico → justdave
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Target Milestone: Bugzilla 2.16 → ---
Version: other → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: