summaryrefslogtreecommitdiff
path: root/src/mod_magnet_cache.c
diff options
context:
space:
mode:
authorArno Töll <arno@debian.org>2012-11-21 23:03:45 +0100
committerArno Töll <arno@debian.org>2012-11-21 23:03:45 +0100
commit9fa7c3d770fb8688555b661940e04c3bf6b6d8aa (patch)
tree7d26c5c3a492656762910721988ee0867f7a57c4 /src/mod_magnet_cache.c
parentc99b717062c6228c4ac6df3831702f81c9806df4 (diff)
downloadlighttpd-a8b8915ca6f8bc0a759f321cb49d0a9210fe23df.tar.gz
Imported Upstream version 1.4.13~r1385upstream/1.4.13_r1385
Diffstat (limited to 'src/mod_magnet_cache.c')
-rw-r--r--src/mod_magnet_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_magnet_cache.c b/src/mod_magnet_cache.c
index e2f5d84..3756bd1 100644
--- a/src/mod_magnet_cache.c
+++ b/src/mod_magnet_cache.c
@@ -34,7 +34,7 @@ void script_free(script *sc) {
script_cache *script_cache_init() {
script_cache *p;
-
+
p = calloc(1, sizeof(*p));
return p;
@@ -89,7 +89,7 @@ lua_State *script_cache_get_script(server *srv, connection *con, script_cache *c
sc = NULL;
}
- /* if the script was script already loaded but either got changed or
+ /* if the script was script already loaded but either got changed or
* failed to load last time */
if (sc == NULL) {
sc = script_init();
@@ -103,7 +103,7 @@ lua_State *script_cache_get_script(server *srv, connection *con, script_cache *c
}
cache->ptr[cache->used++] = sc;
-
+
buffer_copy_string_buffer(sc->name, name);
sc->L = luaL_newstate();