diff --git a/AUTHORS b/AUTHORS index 9df16a408..cdbce466f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -76,6 +76,7 @@ The following submitted code, packages or analysis, and deserve special thanks: Markus Kuhn Scott Kostyshak Erik Wenzel + Štěpán Henek Thanks to the following, who submitted detailed bug reports and excellent suggestions: diff --git a/ChangeLog b/ChangeLog index 4e58efcde..2b0b14c8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ Bugs external utilities on Solaris and NetBSD + Fixed bug #1044, where 'task projects' considers newly deleted tasks and provides an incorrect summary. + + Fixed bug #1048, which segfaulted rather than complain about syntax (thanks + to Bryce Harrington, Štěpán Henek). ------ old releases ------------------------------ diff --git a/src/E9.cpp b/src/E9.cpp index 406533df1..05a7bdbdf 100644 --- a/src/E9.cpp +++ b/src/E9.cpp @@ -116,7 +116,7 @@ void E9::eval (const Task& task, std::vector & 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 ();