mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- Fixed crash bug on Linux where Command::next_mod_group just walked off the end of a vector.
This commit is contained in:
parent
6e649f3f45
commit
dcc0ab19c2
1 changed files with 3 additions and 2 deletions
|
@ -555,8 +555,9 @@ bool Command::next_mod_group (const A3& input, Arg& arg, unsigned int& pos)
|
||||||
if (arg._type == Arg::type_date &&
|
if (arg._type == Arg::type_date &&
|
||||||
arg._category == Arg::cat_attr)
|
arg._category == Arg::cat_attr)
|
||||||
{
|
{
|
||||||
while (input[pos]._type == Arg::type_duration ||
|
while (pos < input.size () &&
|
||||||
input[pos]._category == Arg::cat_op)
|
(input[pos]._type == Arg::type_duration ||
|
||||||
|
input[pos]._category == Arg::cat_op))
|
||||||
{
|
{
|
||||||
arg._raw += " " + input[pos++]._raw;
|
arg._raw += " " + input[pos++]._raw;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue