From: Ondřej Surý Date: Tue, 10 Sep 2019 12:41:53 +0000 (+0200) Subject: Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_c... X-Git-Tag: v9.15.5~11^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac26ecf540e7c6138a227de3e564b17f06df8b5b;p=thirdparty%2Fbind9.git Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf --- diff --git a/cocci/dns_name_copynf.spatch b/cocci/dns_name_copynf.spatch new file mode 100644 index 00000000000..7853b679e07 --- /dev/null +++ b/cocci/dns_name_copynf.spatch @@ -0,0 +1,6 @@ +@@ +expression E1, E2; +@@ + +- RUNTIME_CHECK(dns_name_copy(E1, E2, NULL) == ISC_R_SUCCESS); ++ dns_name_copynf(E1, E2);