diff options
Diffstat (limited to 'modules/core')
| -rw-r--r-- | modules/core/os_stats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/os_stats.cpp b/modules/core/os_stats.cpp index 08a27e31d..f554092e7 100644 --- a/modules/core/os_stats.cpp +++ b/modules/core/os_stats.cpp @@ -27,8 +27,8 @@ static int stats_count_servers(Server *s) int count = 1; - if (s->GetLinks()) - for (std::list<Server *>::const_iterator it = s->GetLinks()->begin(), it_end = s->GetLinks()->end(); it != it_end; ++it) + if (!s->GetLinks().empty()) + for (std::list<Server *>::const_iterator it = s->GetLinks().begin(), it_end = s->GetLinks().end(); it != it_end; ++it) count += stats_count_servers(*it); return count; |
