32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 0ffb38440935b2c71fa4851d2f44f2d120f24735 Mon Sep 17 00:00:00 2001
|
|
From: Aram Poghosyan <Aram.Poghosyan@teamviewer.com>
|
|
Date: Fri, 14 Aug 2020 11:45:33 +0400
|
|
Subject: [PATCH] Fixed warnings
|
|
|
|
---
|
|
json_object.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/json_object.c b/json_object.c
|
|
index 9198257cd2..6c572a8856 100644
|
|
--- a/json_object.c
|
|
+++ b/json_object.c
|
|
@@ -1724,7 +1724,7 @@ static int json_object_deep_copy_recursive(struct json_object *src, struct json_
|
|
/* This handles the `json_type_null` case */
|
|
if (!iter.val)
|
|
jso = NULL;
|
|
- else if (json_object_deep_copy_recursive(iter.val, src, iter.key, -1, &jso,
|
|
+ else if (json_object_deep_copy_recursive(iter.val, src, iter.key, UINT_MAX, &jso,
|
|
shallow_copy) < 0)
|
|
{
|
|
json_object_put(jso);
|
|
@@ -1789,7 +1789,7 @@ int json_object_deep_copy(struct json_object *src, struct json_object **dst,
|
|
if (shallow_copy == NULL)
|
|
shallow_copy = json_c_shallow_copy_default;
|
|
|
|
- rc = json_object_deep_copy_recursive(src, NULL, NULL, -1, dst, shallow_copy);
|
|
+ rc = json_object_deep_copy_recursive(src, NULL, NULL, UINT_MAX, dst, shallow_copy);
|
|
if (rc < 0)
|
|
{
|
|
json_object_put(*dst);
|