diff src/mule-coding.c @ 367:a4f53d9b3154 r21-1-13

Import from CVS: tag r21-1-13
author cvs
date Mon, 13 Aug 2007 11:01:07 +0200
parents 70ad99077275
children cc15677e0335
line wrap: on
line diff
--- a/src/mule-coding.c	Mon Aug 13 11:00:13 2007 +0200
+++ b/src/mule-coding.c	Mon Aug 13 11:01:07 2007 +0200
@@ -3855,7 +3855,8 @@
 	  charset = str->iso2022.charset[reg];
 
 	  /* Error checking: */
-	  if (NILP (charset) || str->iso2022.invalid_designated[reg]
+	  if (! CHARSETP (charset)
+	      || str->iso2022.invalid_designated[reg]
 	      || (((c & 0x7F) == ' ' || (c & 0x7F) == ISO_CODE_DEL)
 		  && XCHARSET_CHARS (charset) == 94))
 	    /* Mrmph.  We are trying to invoke a register that has no