CPP: Add qhelp for RedundantNullCheckSimple.ql.

This commit is contained in:
Geoffrey White
2019-04-18 12:47:07 +01:00
parent f33b24c917
commit eaed0004a3
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
int f(MyList *list) {
list->append(1);
// ...
if (list != NULL)
{
list->append(2);
}
}