recent version of libjson has remove is_error which was checking master
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 21 Jul 2018 15:39:19 +0000 (17:39 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 21 Jul 2018 15:39:19 +0000 (17:39 +0200)
that the arg is NULL.

src/tw.c

index 602f7b3..89343a4 100644 (file)
--- a/src/tw.c
+++ b/src/tw.c
@@ -163,9 +163,6 @@ static struct json_object *task_exec_json(const char *opts)
 
        free(cmd);
 
-       if (o && is_error(o))
-               return NULL;
-
        return o;
 }