From c690a3d58d1dbb8326caee3764a26ffa718b4914 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 24 Jan 2017 19:13:59 -0500 Subject: [PATCH] TW-1869 segmentation fault (on unusual installation) - Thanks to Eric Hymowitz. --- ChangeLog | 2 ++ src/CLI2.cpp | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7de0c7a82..db7673fb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -45,6 +45,8 @@ - TW-1860 Change signature of Task::getAnnotations - TW-1861 Truncated description when adding annotation (thanks to eezewaek). +- TW-1869 segmentation fault (on unusual installation) + (thanks to Eric Hymowitz). - TW-1873 Specify different path to extensions/hooks directory (thanks to Eli). - TW-1877 task done, task edit, task is now pending diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 271a39e23..ddf51e2e2 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -376,9 +376,7 @@ void CLI2::handleArg0 () A2 cal ("calendar", Lexer::Type::word); _args.push_back (cal); } - else if (basename == "task" || - basename == "tw" || - basename == "t") + else { _args.push_back (a); }