Fix bug when load config file.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 21 Aug 2017 21:25:38 +0000 (23:25 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Mon, 21 Aug 2017 21:25:38 +0000 (23:25 +0200)
main.go

diff --git a/main.go b/main.go
index 01b46c9..1ada40e 100644 (file)
--- 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