Welcome to little lamb

Code » anopa » commit 189f164

status: Minor fix (no ":" when no extra msg)

author Olivier Brunel
2015-07-16 17:09:57 UTC
committer Olivier Brunel
2015-07-16 17:28:08 UTC
parent 393c0e1ceafced21e81a24315691c129f205b4a5

status: Minor fix (no ":" when no extra msg)

src/anopa/aa-status.c +1 -1

diff --git a/src/anopa/aa-status.c b/src/anopa/aa-status.c
index bce9bc8..42c9f78 100644
--- a/src/anopa/aa-status.c
+++ b/src/anopa/aa-status.c
@@ -408,7 +408,7 @@ status_service (struct serv *serv, struct config *cfg)
                     put_s (": ");
                     put_s (errmsg[s->st.code]);
                     msg = aa_service_status_get_msg (&s->st);
-                    if (msg)
+                    if (msg && *msg)
                     {
                         put_s (": ");
                         put_s (msg);