]> granicus.if.org Git - gc/commit
Fix CORD_substr_closure for the case when CORD_from_fn returns C string
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Sep 2016 07:27:12 +0000 (10:27 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 1 Nov 2016 23:26:56 +0000 (02:26 +0300)
commit3e8462c475df64ba6616e3a8db438427453b102e
treec3d1ad9cb01762f62ce89ecacd5788e1aa515e98
parentd7ded38f608ceb1ddd14fa1f51ed93ed1274b546
Fix CORD_substr_closure for the case when CORD_from_fn returns C string

* cord/cordbscs.c (CORD_substr_closure): Change type of "result" local
variable from CORD to CordRep* (insert necessary type casts); update
function.header only if function.null field is zero (i.e. CORD_from_fn
returned pointer to CordRep, not a pointer to C character string).
cord/cordbscs.c