aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@server.local> 2012-10-11 21:11:28 -0700
committerLibravatarLibravatar William Ahern <william@server.local> 2012-10-11 21:11:28 -0700
commite4015dae5d7cf4038ea43a1df648a7a0807e956f (patch)
treeb4947393b244ee416aacb3fc512860a89e1535f1
parent49cdb86019dca5fb28d05b490e9721dea67731e4 (diff)
downloadluaossl-e4015dae5d7cf4038ea43a1df648a7a0807e956f.tar.gz
luaossl-e4015dae5d7cf4038ea43a1df648a7a0807e956f.tar.bz2
luaossl-e4015dae5d7cf4038ea43a1df648a7a0807e956f.zip
-n
bug fix testsimple in openssl.c
-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() */