i18n: Make recode_substring_pool() always return a pool_malloc()'d string.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 20 Oct 2013 16:44:09 +0000 (09:44 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 23 Oct 2013 05:56:56 +0000 (22:56 -0700)
commitf68aeb1f6d16c5863d9bc7803f403ff6ded9abac
treedefa5f44fe1e0c263f8dadd73d605b579bbd9a45
parent84dbb69fc7d58eedd8ba5f89e500a3385713f6df
i18n: Make recode_substring_pool() always return a pool_malloc()'d string.

recode_substring_pool() generally returned a string allocated by
pool_malloc(), but when there was an error finding the converter it
returned a string that was allocated by pool_alloc().  This was a problem
for parse_value_labels() in the system file reader, because that function
frees all the strings it recodes.  This commit fixes the problem by
always using pool_malloc() in recode_substring_pool().
src/libpspp/i18n.c