From: Philipp Stephani Date: Mon, 18 Dec 2017 23:01:54 +0000 (+0100) Subject: ; * src/json.c (lisp_to_json): Inline an unnecessary variable. X-Git-Tag: emacs-27.0.90~6009 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=205d02c1b54fa8e18f610cd5deb61a1a3b9bbc01;p=emacs.git ; * src/json.c (lisp_to_json): Inline an unnecessary variable. --- 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. */