From: Sebastien Douheret Date: Mon, 21 Aug 2017 21:25:38 +0000 (+0200) Subject: Fix bug when load config file. X-Git-Tag: v0.0.2~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-gdb.git;a=commitdiff_plain;h=88af0d2f2fd483029d1b4789248f58a214855d85 Fix bug when load config file. --- diff --git a/main.go b/main.go index 01b46c9..1ada40e 100644 --- a/main.go +++ b/main.go @@ -487,7 +487,7 @@ func loadConfigEnvFile(confFile, gdbCmdFile string) (map[string]string, string, path.Join(curDir, "../../target"), path.Join(u.HomeDir, ".xds"), } { - confFile := path.Join(d, xdsEnvFile) + confFile = path.Join(d, xdsEnvFile) logEarly("Search config in %s", confFile) if common.Exists(confFile) { break