1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

mod_lua: init cookie as NULL.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1520256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2013-09-05 08:59:10 +00:00
parent 63c46e2f6b
commit 478d3dc36e

View File

@@ -1895,6 +1895,7 @@ static int lua_get_cookie(lua_State *L)
const char *key, *cookie;
request_rec *r = ap_lua_check_request_rec(L, 1);
key = luaL_checkstring(L, 2);
cookie = NULL;
ap_cookie_read(r, key, &cookie, 0);
if (cookie != NULL) {
lua_pushstring(L, cookie);