From 205d02c1b54fa8e18f610cd5deb61a1a3b9bbc01 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Tue, 19 Dec 2017 00:01:54 +0100 Subject: [PATCH] ; * src/json.c (lisp_to_json): Inline an unnecessary variable. --- src/json.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/json.c b/src/json.c index 5849705952d..82f670a163e 100644 --- a/src/json.c +++ b/src/json.c @@ -376,8 +376,7 @@ lisp_to_json (Lisp_Object lisp) else if (STRINGP (lisp)) { Lisp_Object encoded = json_encode (lisp); - ptrdiff_t size = SBYTES (encoded); - return json_check (json_stringn (SSDATA (encoded), size)); + return json_check (json_stringn (SSDATA (encoded), SBYTES (encoded))); } /* LISP now must be a vector or hashtable. */ -- 2.39.2