From f528915910bee6b29c9934c67be8de5ae3fdd696 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Tue, 30 Jun 2015 19:09:40 +0000 Subject: [PATCH] Ignore empty env declarations --- oz-daemon/daemon.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oz-daemon/daemon.go b/oz-daemon/daemon.go index 1df5dd5..36492fa 100644 --- a/oz-daemon/daemon.go +++ b/oz-daemon/daemon.go @@ -214,6 +214,9 @@ func (d *daemonState) sanitizeEnvironment(p *oz.Profile, oldEnv []string) []stri } for _, EnvItem := range p.Environment { + if EnvItem.Name == "" { + continue + } if EnvItem.Value != "" { d.log.Info("Setting environment variable: %s=%s\n", EnvItem.Name, EnvItem.Value)