aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
Diffstat (limited to 'c_init.go')
-rw-r--r--c_init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_init.go b/c_init.go
index 3935d17..e06084b 100644
--- a/c_init.go
+++ b/c_init.go
@@ -94,7 +94,7 @@ func c_recurse_data_dir(dir string, root string, lhost *HostList) {
c_recurse_data_dir(dir + file.Name() + "/", root, lhost)
} else if filepath.Ext(file.Name()) == ".yml" {
host := c_read_yaml_file(root + dir + file.Name())
- if len(host.Name) == 0 {
+ if host == nil {
return
}
host.Filename = file.Name()