Looking at the code, I understand that what your patch is doing is
making the zeroth case no longer a special one but rather handled it in
the same loop block as the other cases, which is why the bug is fixed.
LGTM.
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Ed is the standard text editor."
http://groups.google.com/group/alt.religion.emacs/msg/8d94ddab6a9b0ad3