projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a09c3b
)
coverity 177526: pointer difference already scaled
author
Andy Green
<andy@warmcat.com>
Wed, 8 Mar 2017 06:10:31 +0000
(14:10 +0800)
committer
Andy Green
<andy@warmcat.com>
Wed, 8 Mar 2017 06:10:31 +0000
(14:10 +0800)
lib/server-handshake.c
patch
|
blob
|
history
diff --git
a/lib/server-handshake.c
b/lib/server-handshake.c
index
85803b9
..
61fcef3
100644
(file)
--- a/
lib/server-handshake.c
+++ b/
lib/server-handshake.c
@@
-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(