commit | b64d61369aeda5f0af40a0daf3af648c433492a3 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Mon Feb 22 22:48:41 2010 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Mon Feb 22 22:48:41 2010 +0000 |
tree | c0ac3cf6cd3464737c5c5e943f19c07f0b7846d0 | |
parent | 5cac46dd413766411dc12758d53b6a7e6b691171 [diff] |
#2560: remove an unnecessary 'for' loop from my_fgets() in Parser/myreadline.c. Noted by Joseph Armbruster; patch by Jessica McKellar. The original code was 'for (;;) {...}', where ... ended with a 'return -2' statement and did not contain a 'break' or 'continue' statement. Therefore, the body of the loop is always executed once. Once upon a time there was a 'continue' in the loop, but it was removed in rev36346, committed by mwh on Wed Jul 7 17:44:12 2004.