summaryrefslogtreecommitdiff
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) {
134 p = lua_touserdata(L, index); 134 p = lua_touserdata(L, index);
135 } 135 }
136 136
137 return *p; 137 return (p)? *p : (void *)0;
138} /* testsimple() */ 138} /* testsimple() */
139 139
140 140