From 88a814a616ef8e5acfd250dcca6b35420860bd8a Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Mon, 8 Apr 2019 19:29:48 +0200 Subject: [PATCH] Check the correct vtable pointer --- src/iostream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iostream.c b/src/iostream.c index e0ba7fc..e775146 100644 --- a/src/iostream.c +++ b/src/iostream.c @@ -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; }