mirror of
https://github.com/git/git.git
synced 2026-02-01 13:31:58 +00:00
It is unlikely that we have an empty environment, ever, but *if* we do, when `environ_size - 1` is passed to `bsearchenv()` it is misinterpreted as a real large integer. To make the code truly defensive, refuse to do anything at all if the size is negative (which should not happen, of course). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>