[prev in list] [next in list] [prev in thread] [next in thread]
List: binutils-bugs
Subject: [Bug gprof/20656] New: double assignment in source.c
From: "tromey at sourceware dot org" <sourceware-bugzilla () sourceware ! org>
Date: 2016-09-29 22:02:32
Message-ID: bug-20656-70 () http ! sourceware ! org/bugzilla/
[Download RAW message or body]
https://sourceware.org/bugzilla/show_bug.cgi?id=20656
Bug ID: 20656
Summary: double assignment in source.c
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gprof
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
This comes from bug 20613 and http://www.viva64.com/en/b/0430/
source.c has:
if (new_line)
{
(*annote) (annotation, max_width, line_num, arg);
fputs (annotation, ofp);
++line_num;
new_line = FALSE;
}
new_line = (buf[i] == '\n');
The first assignment to new_line is redundant here.
Or maybe there is a missing "else". I didn't read closely.
--
You are receiving this mail because:
You are on the CC list for the bug.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic