diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 14:07:42 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 14:07:42 +0100 |
| commit | 8319917898013e00423f9ac3dad5d2f33bee5fbc (patch) | |
| tree | 1bde997b7d301232899e72414372c79fb346096f | |
| parent | 2e0c5fefdedbeb1d9008a6f05a5c73c9fca7602f (diff) | |
| parent | 88823c402478f1473980acf6bf5b886906eb0970 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
| -rw-r--r-- | core/encoding/ini/ini.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/encoding/ini/ini.odin b/core/encoding/ini/ini.odin index eb0ad9e7c..91a1adcf7 100644 --- a/core/encoding/ini/ini.odin +++ b/core/encoding/ini/ini.odin @@ -121,7 +121,7 @@ load_map_from_path :: proc(path: string, allocator: runtime.Allocator, options : data := os.read_entire_file(path, allocator) or_return defer delete(data, allocator) m, err = load_map_from_string(string(data), allocator, options) - ok = err != nil + ok = err == nil defer if !ok { delete_map(m) } |