comparison src/minibuf.c @ 108940:1a7733e684f6

* minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 08 Jun 2010 18:53:11 +0200
parents 1d1d5d9bd884
children ef11028b9610
comparison
equal deleted inserted replaced
108939:dbf3fd5a1594 108940:1a7733e684f6
1588 /* If COLLECTION is not a list, set TAIL just for gc pro. */ 1588 /* If COLLECTION is not a list, set TAIL just for gc pro. */
1589 tail = collection; 1589 tail = collection;
1590 if (type == 2) 1590 if (type == 2)
1591 { 1591 {
1592 obsize = XVECTOR (collection)->size; 1592 obsize = XVECTOR (collection)->size;
1593 bucket = XVECTOR (collection)->contents[index]; 1593 bucket = obsize ? XVECTOR (collection)->contents[index] : zero;
1594 } 1594 }
1595 1595
1596 while (1) 1596 while (1)
1597 { 1597 {
1598 /* Get the next element of the alist, obarray, or hash-table. */ 1598 /* Get the next element of the alist, obarray, or hash-table. */