ptask: remove usage of nonexistent function is_error

see https://github.com/json-c/json-c/issues/304

+14 -1
+1 -1
pkgs/applications/misc/ptask/default.nix
··· 12 13 nativeBuildInputs = [ pkgconfig makeWrapper ]; 14 15 - patches = [ ./tw-version.patch ]; 16 17 preFixup = '' 18 wrapProgram "$out/bin/ptask" \
··· 12 13 nativeBuildInputs = [ pkgconfig makeWrapper ]; 14 15 + patches = [ ./tw-version.patch ./json_c_is_error.patch ]; 16 17 preFixup = '' 18 wrapProgram "$out/bin/ptask" \
+13
pkgs/applications/misc/ptask/json_c_is_error.patch
···
··· 1 + diff --git a/src/tw.c b/src/tw.c 2 + index 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;