mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
rrenumd(8): Fix a trivial Coverity warning
Coverity warns that it is invalid to access following struct members by accessing the current struct member pointer plus one. Assuming the compilers aren't abusing this kind of UB yet, this cleanup isn't a functional change. Reported by: Coverity CID: 1368713 Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
cfa6282553
commit
34a1b5b258
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316178
@ -336,8 +336,8 @@ match_prefix_definition:
|
||||
struct icmp6_router_renum *irr;
|
||||
struct rr_pco_match *rpm;
|
||||
|
||||
irr = (struct icmp6_router_renum *)&ple_cur.pl_irr;
|
||||
rpm = (struct rr_pco_match *)(irr + 1);
|
||||
irr = &ple_cur.pl_irr;
|
||||
rpm = &ple_cur.pl_rpm;
|
||||
memset(rpm, 0, sizeof(*rpm));
|
||||
|
||||
rpm->rpm_code = $1;
|
||||
|
Loading…
Reference in New Issue
Block a user