pavel pimenov преди 7 години
родител
ревизия
255d8f03c2
променени са 1 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 3 4
      src/mod_lua.inl

+ 3 - 4
src/mod_lua.inl

@@ -417,7 +417,6 @@ lsp_kepler_reader(lua_State *L, void *ud, size_t *sz)
 	const char *ret;
 	const char *ret;
 	int64_t i;
 	int64_t i;
 	int64_t left;
 	int64_t left;
-	char end[4];
 
 
 	(void)(L); /* unused */
 	(void)(L); /* unused */
 
 
@@ -2216,13 +2215,13 @@ prepare_lua_environment(struct mg_context *ctx,
 	/* If debugging is enabled, add a hook */
 	/* If debugging is enabled, add a hook */
 	if (debug_params) {
 	if (debug_params) {
 		int mask = 0;
 		int mask = 0;
-		if (0 != strchr(debug_params, "c")) {
+		if (0 != strchr(debug_params, 'c')) {
 			mask |= LUA_MASKCALL;
 			mask |= LUA_MASKCALL;
 		}
 		}
-		if (0 != strchr(debug_params, "r")) {
+		if (0 != strchr(debug_params, 'r')) {
 			mask |= LUA_MASKRET;
 			mask |= LUA_MASKRET;
 		}
 		}
-		if (0 != strchr(debug_params, "l")) {
+		if (0 != strchr(debug_params, 'l')) {
 			mask |= LUA_MASKLINE;
 			mask |= LUA_MASKLINE;
 		}
 		}
 		lua_sethook(L, lua_debug_hook, mask, 0);
 		lua_sethook(L, lua_debug_hook, mask, 0);