diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 869aa7a69..15b51700f 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -2096,9 +2096,12 @@ class TreeSocket : public InspSocket s.get(c); if (c == ' ') { - log(DEBUG,"Pushback(1) '%s'",param); *pptr = 0; - n.push_back(param); + if (*param) + { + log(DEBUG,"Pushback(1) '%s'",param); + n.push_back(param); + } *param = count = 0; pptr = param; item++; @@ -2122,17 +2125,20 @@ class TreeSocket : public InspSocket count++; } } - log(DEBUG,"Pushback(2) '%s'",param); *pptr = 0; - n.push_back(param); + if (*param) + { + log(DEBUG,"Pushback(2) '%s'",param); + n.push_back(param); + } *param = count = 0; pptr = param; } } } + *pptr = 0; if (*param) { - *pptr = 0; log(DEBUG,"Pushback(3) '%s'",param); n.push_back(param); } |