diff options
Diffstat (limited to 'src/character.c')
-rw-r--r-- | src/character.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/character.c b/src/character.c index e44ab8d43b1..e874cf5e53c 100644 --- a/src/character.c +++ b/src/character.c @@ -339,7 +339,6 @@ lisp_string_width (Lisp_Object string, ptrdiff_t from, ptrdiff_t to, contains only ascii and eight-bit-graphic, but that's intentional. */ bool multibyte = SCHARS (string) < SBYTES (string); - unsigned char *str = SDATA (string); ptrdiff_t i = from, i_byte = from ? string_char_to_byte (string, from) : 0; ptrdiff_t from_byte = i_byte; ptrdiff_t width = 0; @@ -414,6 +413,7 @@ lisp_string_width (Lisp_Object string, ptrdiff_t from, ptrdiff_t to, else { int c; + unsigned char *str = SDATA (string); if (multibyte) { |