mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #1048
- Fixed bug #1048, which segfaulted rather than complain about syntax (thanks to Bryce Harrington, Štěpán Henek).
This commit is contained in:
parent
90108e5394
commit
d623a6f9af
3 changed files with 4 additions and 1 deletions
|
@ -116,7 +116,7 @@ void E9::eval (const Task& task, std::vector <Arg>& value_stack)
|
|||
|
||||
// TODO Not sure this is correct.
|
||||
// TODO No longer sure why I was unsure in the first place.
|
||||
else if (arg->_raw == "-" && value_stack.size () < 2)
|
||||
else if (arg->_raw == "-" && value_stack.size () == 1)
|
||||
{
|
||||
Arg right = value_stack.back ();
|
||||
value_stack.pop_back ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue