Skip to content

Commit 3499ee7

Browse files
committed
Fix bug with returning error from non-ffi bindings.
1 parent b0413d4 commit 3499ee7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pre_generated-zmq.nobj.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6488,6 +6488,7 @@ static int ZMQ_Ctx__socket__meth(lua_State *L) {
64886488
if((NULL == rc_zmq_socket1)) {
64896489
lua_pushnil(L);
64906490
lua_pushstring(L, get_zmq_strerror());
6491+
return 2;
64916492
} else {
64926493
obj_type_ZMQ_Socket_push(L, rc_zmq_socket1, rc_zmq_socket_flags1);
64936494
}
@@ -6542,6 +6543,7 @@ static int zmq__init__func(lua_State *L) {
65426543
if((NULL == rc_zmq_init1)) {
65436544
lua_pushnil(L);
65446545
lua_pushstring(L, get_zmq_strerror());
6546+
return 2;
65456547
} else {
65466548
obj_type_ZMQ_Ctx_push(L, rc_zmq_init1, rc_zmq_init_flags1);
65476549
}
@@ -6560,6 +6562,7 @@ static int zmq__init_ctx__func(lua_State *L) {
65606562
if((NULL == ctx1)) {
65616563
lua_pushnil(L);
65626564
lua_pushstring(L, get_zmq_strerror());
6565+
return 2;
65636566
} else {
65646567
obj_type_ZMQ_Ctx_push(L, ctx1, 0);
65656568
}

0 commit comments

Comments
 (0)