projects
/
ptask.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ce72250
)
fixed coredump with taskwarrior 2.0.0 which does not reply with an empty array but
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 18 Apr 2014 12:59:53 +0000
(14:59 +0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 18 Apr 2014 12:59:53 +0000
(14:59 +0200)
an invalid json when there is no tasks
src/tw.c
patch
|
blob
|
history
diff --git
a/src/tw.c
b/src/tw.c
index
df73030
..
5ec2bc4
100644
(file)
--- a/
src/tw.c
+++ b/
src/tw.c
@@
-153,6
+153,9
@@
static struct json_object *task_exec_json(const char *opts)
free(cmd);
+ if (o && is_error(o))
+ return NULL;
+
return o;
}