CheckIO: fix crash
This commit is contained in:
parent
9271286425
commit
41b3ed788d
|
@ -585,7 +585,7 @@ void CheckIO::checkWrongPrintfScanfArguments()
|
|||
}
|
||||
++i;
|
||||
}
|
||||
if (*i == '[') {
|
||||
if (i != formatString.end() && *i == '[') {
|
||||
while (i != formatString.end()) {
|
||||
if (*i == ']') {
|
||||
if (!skip) {
|
||||
|
|
Loading…
Reference in New Issue