struct json_object *afb_msg_json_internal_error()
{
- static struct json_object *obj;
-
- if (obj == NULL)
- obj = afb_msg_json_reply_error("failed", "internal error", NULL, NULL);
-
- return obj;
+ return afb_msg_json_reply_error("failed", "internal error", NULL, NULL);
}