From c3a57853e283239573ab981b6c8acc4a66480c9a Mon Sep 17 00:00:00 2001 From: Ronald Date: Sun, 21 Jul 2024 00:00:47 +0100 Subject: [PATCH 1/2] Ensure that values in ini map are unquoted --- core/encoding/ini/ini.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/encoding/ini/ini.odin b/core/encoding/ini/ini.odin index 8010e4e7592..8cfdf8c5901 100644 --- a/core/encoding/ini/ini.odin +++ b/core/encoding/ini/ini.odin @@ -89,6 +89,8 @@ load_map_from_string :: proc(src: string, allocator: runtime.Allocator, options } if allocated { return v, nil + } else { + return strings.clone(v), nil } } return strings.clone(val) From 1a6885c2a3c35c7399acdd551f6d63dde79645f9 Mon Sep 17 00:00:00 2001 From: Ronald Date: Sun, 21 Jul 2024 00:08:20 +0100 Subject: [PATCH 2/2] Tidy up code --- core/encoding/ini/ini.odin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/encoding/ini/ini.odin b/core/encoding/ini/ini.odin index 8cfdf8c5901..2bb7996a38b 100644 --- a/core/encoding/ini/ini.odin +++ b/core/encoding/ini/ini.odin @@ -89,9 +89,8 @@ load_map_from_string :: proc(src: string, allocator: runtime.Allocator, options } if allocated { return v, nil - } else { - return strings.clone(v), nil } + return strings.clone(v), nil } return strings.clone(val) }