CodeQL library for C/C++
codeql/cpp-all 0.12.11 (changelog, source)
Search

Predicate nullInit

Holds if the evaluation of n may have the effect of, directly or indirectly, assigning a null literal to var.

Import path

import cpp
predicate nullInit(Variable v, ControlFlowNode n)