mirror of
https://github.com/pikvm/ustreamer.git
synced 2025-12-23 18:50:00 +00:00
python: fixed uninitialized fd
This commit is contained in:
parent
3df3658e4f
commit
6cabcd39f1
@ -49,6 +49,8 @@ static void _MemsinkObject_destroy_internals(_MemsinkObject *self) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int _MemsinkObject_init(_MemsinkObject *self, PyObject *args, PyObject *kwargs) {
|
static int _MemsinkObject_init(_MemsinkObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
self->fd = -1;
|
||||||
|
|
||||||
self->lock_timeout = 1;
|
self->lock_timeout = 1;
|
||||||
self->wait_timeout = 1;
|
self->wait_timeout = 1;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user