Check the correct vtable pointer
This commit is contained in:
parent
01ec0c0970
commit
88a814a616
@ -210,7 +210,7 @@ dc_iostream_write (dc_iostream_t *iostream, const void *data, size_t size, size_
|
||||
dc_status_t status = DC_STATUS_SUCCESS;
|
||||
size_t nbytes = 0;
|
||||
|
||||
if (iostream == NULL || iostream->vtable->read == NULL) {
|
||||
if (iostream == NULL || iostream->vtable->write == NULL) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user