Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
a86967d
)
fix concurrency for afb_msg_json_reply_error
author
José Bollo
<jose.bollo@iot.bzh>
Wed, 24 May 2017 14:57:49 +0000
(16:57 +0200)
committer
José Bollo
<jose.bollo@iot.bzh>
Wed, 24 May 2017 14:57:49 +0000
(16:57 +0200)
Change-Id: I37ab68217c733456810e7e9ceb4e2e6c058f1b5b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-msg-json.c
patch
|
blob
|
history
diff --git
a/src/afb-msg-json.c
b/src/afb-msg-json.c
index
6d8f732
..
f2922cb
100644
(file)
--- 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()
{
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);
}
}