diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index e1f6144..9f46dd3 100644 --- a/net/respondd/src/respondd.c +++ b/net/respondd/src/respondd.c @@ -504,7 +504,7 @@ void send_response(int sock, struct json_object *result, bool compress, void serve_request(struct request_schedule *schedule, int sock) { struct request_task* task = schedule_pop_request(schedule); - if (task == NULL) + if (!task) return; bool compress;