diff options
Diffstat (limited to 'src/shared/json.c')
-rw-r--r-- | src/shared/json.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/json.c b/src/shared/json.c index ea37728dc5..a1608d6aa4 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -447,9 +447,7 @@ int json_variant_new_hex(JsonVariant **ret, const void *p, size_t n) { } int json_variant_new_id128(JsonVariant **ret, sd_id128_t id) { - char s[SD_ID128_STRING_MAX]; - - return json_variant_new_string(ret, sd_id128_to_string(id, s)); + return json_variant_new_string(ret, SD_ID128_TO_STRING(id)); } static void json_variant_set(JsonVariant *a, JsonVariant *b) { |