mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-05-26 23:36:16 +00:00
python: fixed uninitialized fd
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user