simplifyIfAddBraces : Fixed a segmentation fault
This commit is contained in:
parent
78f46c5848
commit
c3b9b3dfd5
|
@ -1237,7 +1237,7 @@ bool Tokenizer::simplifyIfAddBraces()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ')' should be followed by '{'
|
// ')' should be followed by '{'
|
||||||
if ( TOKEN::Match(tok, ") {") )
|
if (!tok || TOKEN::Match(tok, ") {"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// insert open brace..
|
// insert open brace..
|
||||||
|
|
Loading…
Reference in New Issue