; * src/json.c (lisp_to_json): Inline an unnecessary variable.

This commit is contained in:
Philipp Stephani 2017-12-19 00:01:54 +01:00
parent 87bd1d914e
commit 205d02c1b5

View file

@ -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. */