CodeQL library for C/C++
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)