aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-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