summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Ahern <william@server.local>2012-10-11 21:11:28 -0700
committerWilliam 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) {
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