mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix
- Fixed bug in TDB::loadCompleted that failed to provide a nice value for Task::id, and folks not using a Mac saw unitialized int values as task IDs.
This commit is contained in:
parent
b692ae3b25
commit
c89a0bbbd8
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ int TDB::loadCompleted (std::vector <Task>& tasks, Filter& filter)
|
||||||
line[length - 1] = '\0';
|
line[length - 1] = '\0';
|
||||||
|
|
||||||
Task task (line);
|
Task task (line);
|
||||||
// Note: no id is set for completed tasks.
|
task.id = 0; // Need a value, just not a valid value.
|
||||||
|
|
||||||
if (filter.pass (task))
|
if (filter.pass (task))
|
||||||
tasks.push_back (task);
|
tasks.push_back (task);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue