commit bash-20050519 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:47:06 -05:00
parent 798a67db11
commit 19e1dd936d
22 changed files with 1155 additions and 110 deletions
+2 -2
View File
@@ -257,14 +257,14 @@ char *s;
return 1;
}
a->max_index += n;
/*
* Renumber all elements in the array except the one we just added.
*/
for ( ; ae != a->head; ae = element_forw(ae))
element_index(ae) += n;
a->max_index = element_index(a->head->prev);
return (a->num_elements);
}