1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

cov263975: help coverity see false positive

This commit is contained in:
Andy Green 2019-11-12 10:19:26 +00:00
parent 4f6fdd41b9
commit b2a112568c

View file

@ -148,7 +148,8 @@ _lwsac_use(struct lwsac **head, size_t ensure, size_t chunk_size, char backfill)
lachead = (struct lwsac_head *)&bf[1];
memset(lachead, 0, sizeof(*lachead));
} else
lachead->curr->next = bf;
if (lachead->curr)
lachead->curr->next = bf;
lachead->curr = bf;
bf->head = *head;