aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--cooker/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cooker/parse.c b/cooker/parse.c
index 46134b5..1cc6296 100644
--- a/cooker/parse.c
+++ b/cooker/parse.c
@@ -56,8 +56,8 @@ static void handle_fd(struct gluten_ctx *g, JSON_Value *value)
die("invalid \"new\" in \"fd\"");
}
- if (json_object_get_boolean(obj, "return"))
- desc.do_return = 1;
+ if (json_object_get_value(obj, "return"))
+ desc.do_return = json_object_get_boolean(obj, "return")
if (json_object_get_value(obj, "close_on_exec"))
desc.cloexec = json_object_get_boolean(obj, "close_on_exec");