Bug 202146 - unneeded zero of variables in elftoolchain 'size' program
Summary: unneeded zero of variables in elftoolchain 'size' program
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Ed Maste
URL:
Keywords:
Depends on:
Blocks: 203349
  Show dependency treegraph
 
Reported: 2015-08-07 03:06 UTC by Kurt Lidl
Modified: 2015-10-14 13:20 UTC (History)
1 user (show)

See Also:


Attachments
Patch to remove unneeded variable setting in 'size' program. (420 bytes, patch)
2015-08-07 03:06 UTC, Kurt Lidl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Lidl freebsd_committer 2015-08-07 03:06:16 UTC
Created attachment 159629 [details]
Patch to remove unneeded variable setting in 'size' program.

There's an unnecessary zeroing of two variables in the 'size' program.

Pointed out by the clang static analysis tool.

I've been running with this patch for a couple of months on my machine
that tracks -CURRNET and have noticed no problems.

Patch is attached.
Comment 1 Ed Maste freebsd_committer 2015-08-07 12:47:36 UTC
Committed upstream in r3242, will come in with the next ELF Tool Chain import.
Comment 2 Ed Maste freebsd_committer 2015-10-14 13:20:55 UTC
New ELF Tool Chain imported in r289071