From 478d3dc36e3d1cae75f17b7c114a2afd9065741d Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Thu, 5 Sep 2013 08:59:10 +0000 Subject: [PATCH] mod_lua: init cookie as NULL. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1520256 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/lua_request.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 452f8ea6d5..e1a2bc7236 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -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); -- 2.50.1