Skip to content
Snippets Groups Projects
Commit 2f3b4c8f authored by Andy Green's avatar Andy Green
Browse files

coverity 177526: pointer difference already scaled

parent 3a09c3b7
No related branches found
No related tags found
No related merge requests found
......@@ -190,8 +190,7 @@ lws_extension_server_handshake(struct lws *wsi, char **p, int budget)
!strncmp(args, po->name,
strlen(po->name))) {
oa.option_name = NULL;
oa.option_index = (po - opts) /
sizeof(*po);
oa.option_index = po - opts;
oa.start = NULL;
lwsl_debug("setting %s\n", po->name);
if (!ext->callback(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment