1diff --git a/src/tw.c b/src/tw.c 2index 602f7b3..ca601cd 100644 3--- a/src/tw.c 4+++ b/src/tw.c 5@@ -163,7 +163,7 @@ static struct json_object *task_exec_json(const char *opts) 6 7 free(cmd); 8 9- if (o && is_error(o)) 10+ if (!o) 11 return NULL; 12 13 return o;