9 Jan
2017
9 Jan
'17
1:17 p.m.
On Thu, Jan 05, 2017 at 05:06:42PM +0100, Fabian Maurer wrote:
It already works with a null-pointer, but will crash if len is -1. Since null-pointer means no text, we just return to avoid crashes.
v2: Followed suggestion by Nikolay Sivov, moved check and extend test
Actually, I'd prefer the NULL ptr check in fnTextSrv_TxSetText(), where it was in your first version. However, the extended test is much better. Huw.