summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json_object.c2
-rw-r--r--json_tokener.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/json_object.c b/json_object.c
index c928400..ecfdc32 100644
--- a/json_object.c
+++ b/json_object.c
@@ -172,7 +172,7 @@ extern struct json_object* json_object_get(struct json_object *jso)
{
if (jso)
jso->_ref_count++;
- return NULL;
+ return jso;
}
int json_object_put(struct json_object *jso)
diff --git a/json_tokener.c b/json_tokener.c
index b5a5818..af4804d 100644
--- a/json_tokener.c
+++ b/json_tokener.c
@@ -979,5 +979,5 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
void json_tokener_set_flags(struct json_tokener *tok, int flags)
{
- if(tok) tok->flags = flags;
+ tok->flags = flags;
}