mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
CPP: Add qhelp for RedundantNullCheckSimple.ql.
This commit is contained in:
10
cpp/ql/src/Likely Bugs/RedundantNullCheckSimple.cpp
Normal file
10
cpp/ql/src/Likely Bugs/RedundantNullCheckSimple.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
int f(MyList *list) {
|
||||
list->append(1);
|
||||
|
||||
// ...
|
||||
|
||||
if (list != NULL)
|
||||
{
|
||||
list->append(2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user