summaryrefslogtreecommitdiff
path: root/scripts/coccinelle/deref_null.cocci
AgeCommit message (Collapse)AuthorFilesLines
2010-08-31Coccinelle: Move deref_null.cocci to a more appropriate directoryNicolas Palix1-293/+0
deref_null.cocci is moved to the 'null' directory which contains other null related rules. Signed-off-by: Nicolas Palix <npalix@diku.dk> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Michal Marek <mmarek@suse.cz>
2010-06-12Add scripts/coccinelle/deref_null.cocciNicolas Palix1-0/+293
Add a Coccinelle file to identify the dereferences of NULL variables This semantic patch identifies when a variable is known to be NULL after a test, but it is still dereferenced later. Signed-off-by: Nicolas Palix <npalix@diku.dk> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Michal Marek <mmarek@suse.cz>