diff options
| author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-07-11 15:03:00 +0000 |
|---|---|---|
| committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-07-11 15:03:00 +0000 |
| commit | 6542d33cd1e546f9e58e7cba93049e2858ec9dc2 (patch) | |
| tree | 405406c137d27953437c2ba78df95b7b9382e0b4 | |
| parent | 10a9ac245eced1dd5b7b20d88e1bf0483dfcd379 (diff) | |
| download | json-c-6542d33cd1e546f9e58e7cba93049e2858ec9dc2.tar.gz | |
Issue #641: Add a cast to void * to address some theoretically undefined printf behavior.
| -rw-r--r-- | json_object.c | 2 |
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; |
