diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-16 02:31:16 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-16 02:31:16 +0800 |
commit | e274e949e6f8fc442e8c464ff1a294edd61ba8e0 (patch) | |
tree | aa139ee5373153c67072271f194f6ad68690d389 /misc.go | |
parent | repo_index: Add HTTP clone along with SSH (diff) | |
download | forge-e274e949e6f8fc442e8c464ff1a294edd61ba8e0.tar.gz forge-e274e949e6f8fc442e8c464ff1a294edd61ba8e0.tar.zst forge-e274e949e6f8fc442e8c464ff1a294edd61ba8e0.zip |
*.go: Fix missing error handling
Diffstat (limited to 'misc.go')
-rw-r--r-- | misc.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13,6 +13,7 @@ type name_desc_t struct { var err_environ_no_separator = errors.New("No separator found in environ line") func environ_to_map(environ_strings []string) (result map[string]string, err error) { + result = make(map[string]string) for _, environ_string := range environ_strings { key, value, found := strings.Cut(environ_string, "=") if !found { |