mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
coverity 177526: pointer difference already scaled
This commit is contained in:
parent
3a09c3b7d6
commit
2f3b4c8f96
1 changed files with 1 additions and 2 deletions
|
@ -190,8 +190,7 @@ lws_extension_server_handshake(struct lws *wsi, char **p, int budget)
|
||||||
!strncmp(args, po->name,
|
!strncmp(args, po->name,
|
||||||
strlen(po->name))) {
|
strlen(po->name))) {
|
||||||
oa.option_name = NULL;
|
oa.option_name = NULL;
|
||||||
oa.option_index = (po - opts) /
|
oa.option_index = po - opts;
|
||||||
sizeof(*po);
|
|
||||||
oa.start = NULL;
|
oa.start = NULL;
|
||||||
lwsl_debug("setting %s\n", po->name);
|
lwsl_debug("setting %s\n", po->name);
|
||||||
if (!ext->callback(
|
if (!ext->callback(
|
||||||
|
|
Loading…
Add table
Reference in a new issue