diff --git a/infer/tests/codetoanalyze/cpp/pulse/nullptr.cpp b/infer/tests/codetoanalyze/cpp/pulse/nullptr.cpp index fd1045501..d52a8757f 100644 --- a/infer/tests/codetoanalyze/cpp/pulse/nullptr.cpp +++ b/infer/tests/codetoanalyze/cpp/pulse/nullptr.cpp @@ -34,7 +34,7 @@ struct X { bool choice(); X* may_return_nullptr() { - if (choice) { + if (choice()) { return nullptr; } return new X();