Bug 202146

Summary: unneeded zero of variables in elftoolchain 'size' program
Product: Base System Reporter: Kurt Lidl <lidl>
Component: binAssignee: Ed Maste <emaste>
Status: Closed FIXED    
Severity: Affects Only Me CC: emaste
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 203349    
Attachments:
Description Flags
Patch to remove unneeded variable setting in 'size' program. none

Description Kurt Lidl freebsd_committer freebsd_triage 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 freebsd_triage 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 freebsd_triage 2015-10-14 13:20:55 UTC
New ELF Tool Chain imported in r289071