Fixed #5303 (Possible NULL pointer dereference in checkassert.cpp)
This commit is contained in:
parent
a94fccf51a
commit
f93d21c8df
|
@ -60,7 +60,8 @@ private:
|
||||||
|
|
||||||
void getErrorMessages(ErrorLogger *errorLogger, const Settings *settings) const {
|
void getErrorMessages(ErrorLogger *errorLogger, const Settings *settings) const {
|
||||||
CheckAssert c(0, settings, errorLogger);
|
CheckAssert c(0, settings, errorLogger);
|
||||||
c.assertWithSideEffects();
|
c.sideEffectInAssertError(0, "function");
|
||||||
|
c.assignmentInAssertError(0, "var");
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string myName() {
|
static std::string myName() {
|
||||||
|
|
Loading…
Reference in New Issue