util.poll: Fix missing return for adding duplicate FD
authorKim Alvefur <zash@zash.se>
Sun, 07 Oct 2018 18:41:44 +0200
changeset 9449 6b4d28eb19cf
parent 9448 af7eafe82447
child 9450 6397e965a22d
util.poll: Fix missing return for adding duplicate FD
util-src/poll.c
--- a/util-src/poll.c	Sun Oct 07 17:40:13 2018 +0200
+++ b/util-src/poll.c	Sun Oct 07 18:41:44 2018 +0200
@@ -92,6 +92,7 @@
 		lua_pushnil(L);
 		lua_pushstring(L, strerror(EEXIST));
 		lua_pushinteger(L, EEXIST);
+		return 3;
 	}
 
 	FD_CLR(fd, &state->readable);