From c89a0bbbd8ec2f7e33037a4b4fc17cdaf43990fb Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 2 Jul 2009 18:30:47 -0400 Subject: [PATCH] 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. --- src/TDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TDB.cpp b/src/TDB.cpp index d6a39f16d..8ddfbcf62 100644 --- a/src/TDB.cpp +++ b/src/TDB.cpp @@ -297,7 +297,7 @@ int TDB::loadCompleted (std::vector & tasks, Filter& filter) line[length - 1] = '\0'; 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)) tasks.push_back (task);