mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1692: 42//' segfaults
- Thanks to Daniel Shahaf.
This commit is contained in:
parent
0d14822711
commit
1f47e8c99f
2 changed files with 9 additions and 0 deletions
|
@ -152,6 +152,7 @@
|
||||||
- TW-1687 task add due:som appears to be interpreted as 'someday' (thanks to
|
- TW-1687 task add due:som appears to be interpreted as 'someday' (thanks to
|
||||||
Alan Young).
|
Alan Young).
|
||||||
- TW-1688 task fails to import (thanks to Rainer Müller).
|
- TW-1688 task fails to import (thanks to Rainer Müller).
|
||||||
|
- TW-1692 42//' segfaults (thanks to Daniel Shahaf).
|
||||||
- Prevent potential task duplication during import for non-pending tasks.
|
- Prevent potential task duplication during import for non-pending tasks.
|
||||||
- Show the active context in "context list", if any is active.
|
- Show the active context in "context list", if any is active.
|
||||||
- Fix "task edit" dropping annotation text after newlines.
|
- Fix "task edit" dropping annotation text after newlines.
|
||||||
|
|
|
@ -65,6 +65,10 @@ DOM::~DOM ()
|
||||||
//
|
//
|
||||||
bool DOM::get (const std::string& name, Variant& value)
|
bool DOM::get (const std::string& name, Variant& value)
|
||||||
{
|
{
|
||||||
|
// Special case, blank refs cause problems.
|
||||||
|
if (name == "")
|
||||||
|
return false;
|
||||||
|
|
||||||
int len = name.length ();
|
int len = name.length ();
|
||||||
Nibbler n (name);
|
Nibbler n (name);
|
||||||
|
|
||||||
|
@ -196,6 +200,10 @@ bool DOM::get (const std::string& name, Variant& value)
|
||||||
// as special cases.
|
// as special cases.
|
||||||
bool DOM::get (const std::string& name, const Task& task, Variant& value)
|
bool DOM::get (const std::string& name, const Task& task, Variant& value)
|
||||||
{
|
{
|
||||||
|
// Special case, blank refs cause problems.
|
||||||
|
if (name == "")
|
||||||
|
return false;
|
||||||
|
|
||||||
// Quickly deal with the most common cases.
|
// Quickly deal with the most common cases.
|
||||||
if (task.size () && name == "id")
|
if (task.size () && name == "id")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue