mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Fix warnings about unused variable and (false positive) "'mkey' may be used uninitialized in this function"
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1383022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -460,6 +460,7 @@ AP_LUA_DECLARE(lua_State*)ap_lua_get_lua_state(apr_pool_t *lifecycle_pool,
|
||||
apr_pool_userdata_get((void **)&cache_info, mkey, lifecycle_pool);
|
||||
if (cache_info == NULL) {
|
||||
cache_info = apr_pcalloc(lifecycle_pool, sizeof(ap_lua_finfo));
|
||||
apr_pool_userdata_set((void*) cache_info, mkey, NULL, lifecycle_pool);
|
||||
}
|
||||
}
|
||||
if (spec->codecache == AP_LUA_CACHE_STAT) {
|
||||
@@ -480,9 +481,6 @@ AP_LUA_DECLARE(lua_State*)ap_lua_get_lua_state(apr_pool_t *lifecycle_pool,
|
||||
if (cache_info->runs == 0) tryCache = 1;
|
||||
}
|
||||
cache_info->runs++;
|
||||
if (spec->scope != AP_LUA_SCOPE_SERVER) {
|
||||
apr_pool_userdata_set((void*) cache_info, mkey, NULL, lifecycle_pool);
|
||||
}
|
||||
}
|
||||
if (tryCache == 0 && spec->scope != AP_LUA_SCOPE_ONCE) {
|
||||
int rc;
|
||||
|
Reference in New Issue
Block a user