1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Fix: Mark fresh IO objects as touched.

This commit is contained in:
Philipp Schafft 2019-06-27 12:38:33 +00:00
parent 129bdeeef3
commit 02e0375711

View File

@ -32,7 +32,13 @@ igloo_RO_PUBLIC_TYPE(igloo_io_t,
igloo_io_t * igloo_io_new(const igloo_io_ifdesc_t *ifdesc, igloo_ro_t backend_object, void *backend_userdata, const char *name, igloo_ro_t associated) igloo_io_t * igloo_io_new(const igloo_io_ifdesc_t *ifdesc, igloo_ro_t backend_object, void *backend_userdata, const char *name, igloo_ro_t associated)
{ {
return igloo_interface_base_new(igloo_io_t, ifdesc, backend_object, backend_userdata, name, associated); igloo_io_t *io = igloo_interface_base_new(igloo_io_t, ifdesc, backend_object, backend_userdata, name, associated);
if (!io)
return NULL;
io->touched = 1;
return io;
} }