hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 8da4b7361169870e902eaa1ce4d98e84d22270a9
parent 04a06a4e38a9b58aca3b99b912e6ca3a84c38268
Author: Autumn! <autumnull@posteo.net>
Date:   Mon, 13 Mar 2023 13:22:29 +0000

time::chrono: heap allocate zone.abbr

necessary because the string is borrowed from abbrdata, which gets freed.

Signed-off-by: Autumn! <autumnull@posteo.net>

Diffstat:
Mtime/chrono/tzdb.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/time/chrono/tzdb.ha b/time/chrono/tzdb.ha @@ -231,7 +231,7 @@ fn parse_tzif(h: io::handle, tz: *timezone) (void | invalidtzif | io::error) = { case encoding::utf8::invalid => return invalidtzif; }; - zone.abbr = abbr; + zone.abbr = strings::dup(abbr); append(zones, zone); };