From acc35c361fa20cd41212fd376173c7cc3b8e62ac Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 18 May 1997 20:18:16 +0000 Subject: [PATCH] (strwidth): Fix previous change. --- src/charset.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/charset.c b/src/charset.c index e88d1839b20..8518cc8829d 100644 --- a/src/charset.c +++ b/src/charset.c @@ -811,7 +811,10 @@ strwidth (str, len) int c = STRING_CHAR (str, endp - str); /* Get the way the display table would display it. */ - disp = DISP_CHAR_VECTOR (dp, c); + if (dp) + disp = DISP_CHAR_VECTOR (dp, c); + else + disp = Qnil; if (VECTORP (disp)) thiswidth = XVECTOR (disp)->size; -- 2.39.5