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

Summary: Wrong hyperlink to a union member instead of local variable
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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