Check the correct vtable pointer

This commit is contained in:
Jef Driesen 2019-04-08 19:29:48 +02:00
parent 01ec0c0970
commit 88a814a616

View File

@ -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;
}