From fb5b5f0692f3525cb7d3c9617e51ee0330715f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Fri, 4 Dec 2015 21:49:53 +0100 Subject: [PATCH] Handle case of uc_wqueue_handle_write operating on an empty queue --- src/wqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wqueue.c b/src/wqueue.c index 33ccfe2..5526d78 100644 --- a/src/wqueue.c +++ b/src/wqueue.c @@ -5,7 +5,7 @@ static int uc_wqueue_handle_write(struct UCWQueue *wqueue) { - int rc; + int rc = UC_WQ_DONE; struct IOMuxFD *fd = &wqueue->fd; struct IOMux *mux = wqueue->mux;