Tag: 3557aa4f7ddaec2903532595d2caccac32a5bbeb

V4L/DVB (13954): Correct NULL test

Author: Julia Lawall <julia@diku.dk> Test the just-allocated value for NULL rather than some other value. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r@ identifier f; @@ f(…) { } @@ expression *x; expression y; identifier r.f; statement S; @@ x = f(…); ( if ((x) == NULL) S | if …

Lire la suite