Bug 149889
Summary: | local variable used before set | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Binderman <dcb314> |
Component: | netdiag | Assignee: | Dams <anvil> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-07-24 01:03:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Binderman
2005-02-28 17:24:43 UTC
"sum" is a local/temporary variable and is only assigned to. It's not read later. Could be for debugging purposes, whatever. Not a bug, no threat or side-effects or anything like that. >is only assigned to
So what happens if someone writes code which assumes
that local variable "sum" has something of value in it ?
Suggest either the local variable is useless, and so it can
be removed, or that it does something useful and so it should
be initialised to something sensible.
You can't have your cake and eat it, surely ?
Fedora Extras is the wrong place where to "suggest" such code modifications. It would imply that we apply a patch, which doesn't increase the value of the built software and which might need to be revisited and updated for future version upgrades for no benefit. If upstream developers chose to insert that line of code in this place, that is their decision. Please seek contact with the upstream project if you want to discuss the usefulness of that code. |