From 4dbfd5f7297fdd7a237c3c563fdda79d77f299bb Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 18 Dec 2023 20:20:20 +0100 Subject: fking good --- c_init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c_init.go') 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() -- cgit v1.2.3