if (CONSP (prop))
{
/* We have a list of faces, merge them in reverse order */
- Lisp_Object length = Flength (prop);
- int len = XINT (length);
+ Lisp_Object length;
+ int len;
Lisp_Object *faces;
+ length = Fsafe_length (prop);
+ len = XFASTINT (length);
+
/* Put them into an array */
faces = (Lisp_Object *) alloca (len * sizeof (Lisp_Object));
for (j = 0; j < len; j++)
if (CONSP (prop))
{
/* We have a list of faces, merge them in reverse order */
- Lisp_Object length = Flength (prop);
- int len = XINT (length);
+ Lisp_Object length;
+ int len;
Lisp_Object *faces;
- int i;
+
+ length = Fsafe_length (prop);
+ len = XFASTINT (length);
/* Put them into an array */
faces = (Lisp_Object *) alloca (len * sizeof (Lisp_Object));