aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openssl.c2
1 files changed, 1 insertions, 1 deletions
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() */