mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
Fix Coverity #1109867.
This commit is contained in:
parent
21d63c3542
commit
f45bc88b3d
@ -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 */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user