mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 01:59:26 +00:00
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):
31 lines
433 B
Plaintext
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
|