X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-msg-json.c;fp=src%2Fafb-msg-json.c;h=f2922cb85b5133c69ac6e2d1ef05ab0a95fcf7d9;hb=de58242f94d003c093573120e2389a60adf4374c;hp=6d8f73272d03c1341a3049e1161ac8023f9a7caa;hpb=a86967decc0ff9b139f412fffccc7914e27a80a9;p=src%2Fapp-framework-binder.git diff --git a/src/afb-msg-json.c b/src/afb-msg-json.c index 6d8f7327..f2922cb8 100644 --- a/src/afb-msg-json.c +++ b/src/afb-msg-json.c @@ -107,12 +107,7 @@ struct afb_arg afb_msg_json_get_arg(struct json_object *object, const char *name 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); }