Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
05ba2433
Commit
05ba2433
authored
Apr 08, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extmod/modwebsocket: Properly check number of args to constructor.
parent
5e919b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
extmod/modwebsocket.c
extmod/modwebsocket.c
+2
-1
No files found.
extmod/modwebsocket.c
View file @
05ba2433
...
...
@@ -31,6 +31,7 @@
#include "py/nlr.h"
#include "py/obj.h"
#include "py/runtime.h"
#include "py/stream.h"
#if MICROPY_PY_WEBSOCKET
...
...
@@ -50,7 +51,7 @@ typedef struct _mp_obj_websocket_t {
}
mp_obj_websocket_t
;
STATIC
mp_obj_t
websocket_make_new
(
const
mp_obj_type_t
*
type
,
size_t
n_args
,
size_t
n_kw
,
const
mp_obj_t
*
args
)
{
assert
(
n_args
==
1
);
mp_arg_check_num
(
n_args
,
n_kw
,
1
,
1
,
false
);
mp_obj_websocket_t
*
o
=
m_new_obj
(
mp_obj_websocket_t
);
o
->
base
.
type
=
type
;
o
->
sock
=
args
[
0
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment