summaryrefslogtreecommitdiff
path: root/json_object.c
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2020-07-11 15:03:00 +0000
committerEric Haszlakiewicz <erh+git@nimenees.com>2020-07-11 15:03:00 +0000
commit6542d33cd1e546f9e58e7cba93049e2858ec9dc2 (patch)
tree405406c137d27953437c2ba78df95b7b9382e0b4 /json_object.c
parent10a9ac245eced1dd5b7b20d88e1bf0483dfcd379 (diff)
downloadjson-c-6542d33cd1e546f9e58e7cba93049e2858ec9dc2.tar.gz
Issue #641: Add a cast to void * to address some theoretically undefined printf behavior.
Diffstat (limited to 'json_object.c')
-rw-r--r--json_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json_object.c b/json_object.c
index 73daa4c..2ee39ea 100644
--- a/json_object.c
+++ b/json_object.c
@@ -1635,7 +1635,7 @@ static int json_object_copy_serializer_data(struct json_object *src, struct json
{
_json_c_set_last_err(
"json_object_deep_copy: unable to copy unknown serializer data: %p\n",
- dst->_to_json_string);
+ (void *)dst->_to_json_string);
return -1;
}
dst->_user_delete = src->_user_delete;