Files
bind9/cocci/dns_name_copy-with-result.spatch
Michal Nowak a0d0dee4af Fix typo in dns_name_copy-with-result.spatch
A typo introduced in f3f1cab05e 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):
2021-11-02 19:16:41 +01:00

31 lines
433 B
Plaintext

@@
expression V, E1, E2;
statement S;
@@
- V = dns_name_copy(E1, E2, NULL);
- if (V != ISC_R_SUCCESS) S
+ dns_name_copy(E1, E2);
@@
expression V, E1, E2;
statement S1, S2;
@@
- V = dns_name_copy(E1, E2, NULL);
- if (V == ISC_R_SUCCESS) S1 else S2;
+ dns_name_copy(E1, E2);
+ S2
@@
expression V, E1, E2;
statement S1, S2;
@@
- V = dns_name_copy(E1, E2, NULL);
- S1
- if (V == ISC_R_SUCCESS) S2
+ dns_name_copy(E1, E2);
+ S1
+ S2