diff options
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c index 186c5bee8..47fda92ad 100644 --- a/content/content.c +++ b/content/content.c @@ -657,7 +657,9 @@ uint32_t content_count_users(struct content *c) for (user = c->user_list; user != NULL; user = user->next) counter += 1; - + + assert(counter > 0); + return counter - 1; /* Subtract 1 for the sentinel */ } |