]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix typo in dns_name_copy-with-result.spatch
authorMichal Nowak <mnowak@isc.org>
Mon, 1 Nov 2021 14:40:08 +0000 (15:40 +0100)
committerMichal Nowak <mnowak@isc.org>
Tue, 2 Nov 2021 18:16:41 +0000 (19:16 +0100)
A typo introduced in f3f1cab05e05c9bdd5da91f3ab159ec6658ec7f4 prevents
execution of the dns_name_copy-with-result.spatch. The replacement
should end with semicolon not a colon:

    plus: parse error:
      File "cocci/dns_name_copy-with-result.spatch", line 28, column 23, charpos = 421
      around = ':',
      whole content = + dns_name_copy(E1, E2):

cocci/dns_name_copy-with-result.spatch

index 129d421d672c7976b023d344ec4350d5e14b6136..f3313b7672fa50ac977e24d43d81a10ee2d1df13 100644 (file)
@@ -25,6 +25,6 @@ statement S1, S2;
 - V = dns_name_copy(E1, E2, NULL);
 - S1
 - if (V == ISC_R_SUCCESS) S2
-+ dns_name_copy(E1, E2):
++ dns_name_copy(E1, E2);
 + S1
 + S2