From e4015dae5d7cf4038ea43a1df648a7a0807e956f Mon Sep 17 00:00:00 2001 From: William Ahern Date: Thu, 11 Oct 2012 21:11:28 -0700 Subject: -n bug fix testsimple in openssl.c --- openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl.c b/openssl.c index 2dd5844..d6edde8 100644 --- a/openssl.c +++ b/openssl.c @@ -134,7 +134,7 @@ static void *testsimple(lua_State *L, int index, const char *tname) { p = lua_touserdata(L, index); } - return *p; + return (p)? *p : (void *)0; } /* testsimple() */ -- cgit v1.2.3-59-g8ed1b