aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.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
commit037e60b3c95c0e086a4d684e9a6abc6e2661cf57 (patch)
tree80fc519c7920648883970d691cc8f629552932a6 /c_exec.go
parentjosh hardflip now (diff)
downloadhardflip-037e60b3c95c0e086a4d684e9a6abc6e2661cf57.tar.gz
hardflip-037e60b3c95c0e086a4d684e9a6abc6e2661cf57.tar.bz2
hardflip-037e60b3c95c0e086a4d684e9a6abc6e2661cf57.tar.xz
hardflip-037e60b3c95c0e086a4d684e9a6abc6e2661cf57.tar.zst
hardflip-037e60b3c95c0e086a4d684e9a6abc6e2661cf57.zip
up
Diffstat (limited to 'c_exec.go')
-rw-r--r--c_exec.go4
1 files changed, 4 insertions, 0 deletions
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