Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-export: Provide the real path of the binding
[src/app-framework-binder.git]
/
src
/
afb-proto-ws.c
diff --git
a/src/afb-proto-ws.c
b/src/afb-proto-ws.c
index
142afa9
..
c079bf6
100644
(file)
--- a/
src/afb-proto-ws.c
+++ b/
src/afb-proto-ws.c
@@
-261,10
+261,11
@@
static int readbuf_object(struct readbuf *rb, struct json_object **object)
{
const char *string;
struct json_object *o;
{
const char *string;
struct json_object *o;
+ enum json_tokener_error jerr;
int rc = readbuf_string(rb, &string, NULL);
if (rc) {
int rc = readbuf_string(rb, &string, NULL);
if (rc) {
- o = json_tokener_parse
(string
);
- if (
o == NULL && strcmp(string, "null")
)
+ o = json_tokener_parse
_verbose(string, &jerr
);
+ if (
jerr != json_tokener_success
)
o = json_object_new_string(string);
*object = o;
}
o = json_object_new_string(string);
*object = o;
}