goption: Add a precondition to avoid GOptionEntry list overflow
If the calling code adds more option entries than `G_MAXSIZE` then there’ll be an integer overflow. This seems vanishingly unlikely (given that all callers use static option entry lists), but add a precondition anyway. Signed-off-by:Philip Withnall <withnall@endlessm.com> Fixes: #2197
Please register or sign in to comment