comparison src/alloc.c @ 109278:d14945d39811

* alloc.c (Fmake_byte_code): Don't access undefined argument (Bug#6517).
author Andreas Schwab <schwab@linux-m68k.org>
date Sat, 26 Jun 2010 20:47:35 +0200
parents ddd257e3f816
children 60516122d066 0813efd37bf9
comparison
equal deleted inserted replaced
109277:8591e48339c7 109278:d14945d39811
3092 if (!NILP (Vpurify_flag)) 3092 if (!NILP (Vpurify_flag))
3093 val = make_pure_vector ((EMACS_INT) nargs); 3093 val = make_pure_vector ((EMACS_INT) nargs);
3094 else 3094 else
3095 val = Fmake_vector (len, Qnil); 3095 val = Fmake_vector (len, Qnil);
3096 3096
3097 if (STRINGP (args[1]) && STRING_MULTIBYTE (args[1])) 3097 if (nargs > 1 && STRINGP (args[1]) && STRING_MULTIBYTE (args[1]))
3098 /* BYTECODE-STRING must have been produced by Emacs 20.2 or the 3098 /* BYTECODE-STRING must have been produced by Emacs 20.2 or the
3099 earlier because they produced a raw 8-bit string for byte-code 3099 earlier because they produced a raw 8-bit string for byte-code
3100 and now such a byte-code string is loaded as multibyte while 3100 and now such a byte-code string is loaded as multibyte while
3101 raw 8-bit characters converted to multibyte form. Thus, now we 3101 raw 8-bit characters converted to multibyte form. Thus, now we
3102 must convert them back to the original unibyte form. */ 3102 must convert them back to the original unibyte form. */