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 '{'
|
||||
if ( TOKEN::Match(tok, ") {") )
|
||||
if (!tok || TOKEN::Match(tok, ") {"))
|
||||
continue;
|
||||
|
||||
// insert open brace..
|
||||
|
|
Loading…
Reference in New Issue