From 6a3f5128d042b8bcb555cf9849b2899ac9615fd8 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 27 Feb 2008 16:13:44 +0000 Subject: [PATCH] Handle case when no buttons are used. --- cmd/smyrna/topviewdata.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/smyrna/topviewdata.c b/cmd/smyrna/topviewdata.c index 66d688e2e..566b2b3f5 100644 --- a/cmd/smyrna/topviewdata.c +++ b/cmd/smyrna/topviewdata.c @@ -63,6 +63,8 @@ int load_host_buttons(topview* t,Agraph_t *g,glCompSet* s) p->color.B=0,2; glCompSetAddPanel(s,p); } + else return 0; + for (i=0;i < btncount ; i++) { sprintf(hostbtncaption,"hostbtncaption%i",i); -- 2.40.0