summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a86967d)
Change-Id: I37ab68217c733456810e7e9ceb4e2e6c058f1b5b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
struct json_object *afb_msg_json_internal_error()
{
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);