mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 11:22:04 -04:00
Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf
(cherry picked from commit ac26ecf540)
This commit is contained in:
parent
a1ef76cd78
commit
c8c6718ee4
1 changed files with 6 additions and 0 deletions
6
cocci/dns_name_copynf.spatch
Normal file
6
cocci/dns_name_copynf.spatch
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@@
|
||||
expression E1, E2;
|
||||
@@
|
||||
|
||||
- RUNTIME_CHECK(dns_name_copy(E1, E2, NULL) == ISC_R_SUCCESS);
|
||||
+ dns_name_copynf(E1, E2);
|
||||
Loading…
Reference in a new issue