This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257319 - Wrong hyperlink to a union member instead of local variable
Summary: Wrong hyperlink to a union member instead of local variable
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-28 13:14 UTC by Vladimir Kvashin
Modified: 2016-09-01 19:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2015-12-28 13:14:27 UTC
In the file

http://hg.netbeans.org/cnd-main/file/9b385909ae2f/dlight.remote.impl/tools/fs_server/src/util.c

in method visit_dir_entries there is two different entities with "d" name:
local variable "DIR *d" (line 470)
and union member "struct dirent d" (473)
in line 486, in the following call 
  if (readdir_r(d, &entry_buf.d, &entry)) {
the 1-st "d" should refer to local variable,
but the IDE hyperlinks to union member