tal/str: fix infinite loop of tal_fmt() with empty string.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jan 2016 06:36:55 +0000 (17:06 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jan 2016 06:36:55 +0000 (17:06 +1030)
commit64e9e7145aac9502655c5799ab711b9766c1da57
tree76d80158a2ad154478405fd6f0ccd8ed95f58cd9
parent97a1ba3d6fac93e680e3d95cef930dea4fdd0822
tal/str: fix infinite loop of tal_fmt() with empty string.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/str/str.c
ccan/tal/str/test/run-fmt-terminate.c [new file with mode: 0644]