Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf

This commit is contained in:
Ondřej Surý
2019-09-10 14:41:53 +02:00
committed by Mark Andrews
parent f7aef3738a
commit ac26ecf540

View File

@@ -0,0 +1,6 @@
@@
expression E1, E2;
@@
- RUNTIME_CHECK(dns_name_copy(E1, E2, NULL) == ISC_R_SUCCESS);
+ dns_name_copynf(E1, E2);