mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 02:40:35 +03:00
Added const reported by cppcheck 2.14
This commit is contained in:
committed by
Eduardo Arias
parent
d053ec6de6
commit
bbef22b3b5
@@ -114,14 +114,14 @@ int Lua::blob_keeper(lua_State *L, const void *p, size_t sz, void *ud) {
|
||||
|
||||
|
||||
const char *Lua::blob_reader(lua_State *L, void *ud, size_t *size) {
|
||||
LuaScriptBlob *lsb = static_cast<LuaScriptBlob *>(ud);
|
||||
const LuaScriptBlob *lsb = static_cast<LuaScriptBlob *>(ud);
|
||||
const char *data = lsb->read(size);
|
||||
return data;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int Lua::run(Transaction *t, const std::string &str) {
|
||||
int Lua::run(Transaction *t, const std::string &str) { // cppcheck-suppress constParameterPointer
|
||||
#ifdef WITH_LUA
|
||||
std::string luaRet;
|
||||
const char *a = NULL;
|
||||
|
||||
Reference in New Issue
Block a user