Format string parser: fix infinite loop

This would happen if given an (incomplete) format string like: ‘${1:/’.
This commit is contained in:
Allan Odgaard
2012-08-23 17:13:14 +02:00
parent 3c79f275f1
commit 16b3fcecd7

View File

@@ -162,6 +162,10 @@ bool parse_context_t::parse_variable (bool(parse_context_t::*parse_content)(char
res.change |= options[i].change;
}
}
else
{
break;
}
}
if(it[-1] == '}')