From 12c86936614b76bb7b130a0b6346662bfefbe8a9 Mon Sep 17 00:00:00 2001 From: liyiheng Date: Sat, 2 Jun 2018 11:43:50 +0800 Subject: [PATCH] Update system_info.go --- system/system_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/system_info.go b/system/system_info.go index 6c51b197..63fa6770 100644 --- a/system/system_info.go +++ b/system/system_info.go @@ -41,7 +41,7 @@ func NewSystemInfo() *SystemInfo { m[strings.TrimSpace(parts[0])] = strings.TrimSpace(parts[1]) } - sysInfo := new(SystemInfo) + var sysInfo *SystemInfo switch runtime.GOOS { case "linux": sysInfo = &SystemInfo{