]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_c...
authorOndřej Surý <ondrej@sury.org>
Tue, 10 Sep 2019 12:41:53 +0000 (14:41 +0200)
committerMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 00:43:26 +0000 (10:43 +1000)
cocci/dns_name_copynf.spatch [new file with mode: 0644]

diff --git a/cocci/dns_name_copynf.spatch b/cocci/dns_name_copynf.spatch
new file mode 100644 (file)
index 0000000..7853b67
--- /dev/null
@@ -0,0 +1,6 @@
+@@
+expression E1, E2;
+@@
+
+- RUNTIME_CHECK(dns_name_copy(E1, E2, NULL) == ISC_R_SUCCESS);
++ dns_name_copynf(E1, E2);