changeset 17863:bc8774c7999b

(strwidth): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Sun, 18 May 1997 20:18:16 +0000
parents 1cc28cd7e2c7
children c662a8633943
files src/charset.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Sun May 18 20:06:12 1997 +0000
+++ b/src/charset.c	Sun May 18 20:18:16 1997 +0000
@@ -811,7 +811,10 @@
 	  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;