aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-18 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-18 20:20:20 +0100
commit4dbfd5f7297fdd7a237c3c563fdda79d77f299bb (patch)
treeb6385f5e88b9ddc8fb2e3080a50f631c9c7ed22b /c_init.go
parentcool (diff)
downloadhardflip-4dbfd5f7297fdd7a237c3c563fdda79d77f299bb.tar.gz
hardflip-4dbfd5f7297fdd7a237c3c563fdda79d77f299bb.tar.bz2
hardflip-4dbfd5f7297fdd7a237c3c563fdda79d77f299bb.tar.xz
hardflip-4dbfd5f7297fdd7a237c3c563fdda79d77f299bb.tar.zst
hardflip-4dbfd5f7297fdd7a237c3c563fdda79d77f299bb.zip
fking good
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()