Because it is missing trailing parentheses, this expression refers to the value of the function pointer rather than the return value of the function.
This expression will always be non-null because it references a function pointer rather than the return value of the function.
Example: The following conditional will never fire. The predicate getChunk == NULL
will always be false because getChunk
is the name of a function defined in the program.
if (getChunk == NULL)
return ERR;
[1] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3050 CAT II
[2] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 398