This commit is contained in:
Michael Drake 2013-10-23 15:40:27 +01:00
parent 21d63c3542
commit f45bc88b3d

View File

@ -658,6 +658,8 @@ 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 */
}