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