From 037e60b3c95c0e086a4d684e9a6abc6e2661cf57 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 18 Dec 2023 20:20:20 +0100 Subject: up --- c_exec.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'c_exec.go') diff --git a/c_exec.go b/c_exec.go index df55791..eab792a 100644 --- a/c_exec.go +++ b/c_exec.go @@ -56,6 +56,10 @@ import ( func display_servers(lhost *HostList) { curr := lhost.head + if lhost.head == nil { + fmt.Println("no hosts") + return + } for curr != nil { fmt.Println(curr.ID, curr.Folder + curr.Name) curr = curr.next -- cgit v1.2.3