Misc.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59217 65644016-39b1-43b1-bf79-96bc8fe82c15
Replace the "while" with unconditional break with an "if". (PVS_Studio).

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59218 65644016-39b1-43b1-bf79-96bc8fe82c15
This fixes linux build and hopefully does not break windows & darwin

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59219 65644016-39b1-43b1-bf79-96bc8fe82c15
Avoid zerodivide error, reported by Dmitry Sibiryakov

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@59220 65644016-39b1-43b1-bf79-96bc8fe82c15