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>
Wed, 28 Sep 2016 07:27:12 +0000 (10:27 +0300)
commitcbc51ee1f71cb0007ac70adae48b05e26ab83f39
tree86dc916faf8ae9bb03a811aaa6b47d1f7badd6eb
parent6783d150effd76f4e77111672ba6ba2c74e024d1
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