Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf
This commit is contained in:
committed by
Mark Andrews
parent
f7aef3738a
commit
ac26ecf540
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);
|
||||
Reference in New Issue
Block a user