tor/scripts/coccinelle/test_assert_null.cocci

12 lines
131 B
Plaintext
Raw Normal View History

@@
expression * e;
@@
(
- tt_assert(e != NULL)
+ tt_ptr_op(e, OP_NE, NULL)
|
- tt_assert(e == NULL)
+ tt_ptr_op(e, OP_EQ, NULL)
)