cd430b9b7b
The test on "if (err)" after parsing a number was meant to be "if (*err)" but in practise it will always be true since we at least have a '\n' there, so no need for testing before writing zero. This fixes issue #1211.