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)
Bugzilla
Bugzilla-General
Tracking
()
People
(Reporter: timeless, Assigned: justdave)
References
()
Details
Attachments
(1 file)
997 bytes,
patch
|
Details | Diff | Splinter Review |
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
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
That one's fairly easy... just declare the variable at the begining of the if block and use it later.
Keywords: patch
Updated•23 years ago
|
Target Milestone: --- → Bugzilla 2.16
Updated•23 years ago
|
Priority: -- → P2
Comment 3•23 years ago
|
||
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
Assignee | ||
Comment 4•23 years ago
|
||
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
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•