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