summaryrefslogtreecommitdiff
path: root/src/stat_cache.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-07-21 20:35:27 +0000
committerStefan Bühler <stbuehler@web.de>2009-07-21 20:35:27 +0000
commit4df22f2a32ac4f220d288a1b07c924af2d9cf10b (patch)
treec8cc1b2dc839e3ebc6e7ade75e7722dc5025f62a /src/stat_cache.c
parent8629831df2420cfde5e902e793e84f9129d2dae1 (diff)
downloadlighttpd1.4-4df22f2a32ac4f220d288a1b07c924af2d9cf10b.tar.gz
lighttpd1.4-4df22f2a32ac4f220d288a1b07c924af2d9cf10b.zip
Fix issues found with clang analyzer
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2594 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/stat_cache.c')
-rw-r--r--src/stat_cache.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/stat_cache.c b/src/stat_cache.c
index 26571437..6b2a1daf 100644
--- a/src/stat_cache.c
+++ b/src/stat_cache.c
@@ -503,11 +503,9 @@ handler_t stat_cache_get_entry(server *srv, connection *con, buffer *name, stat_
}
if (NULL == sce) {
- int osize = 0;
-
- if (sc->files) {
- osize = sc->files->size;
- }
+#ifdef DEBUG_STAT_CACHE
+ int osize = splaytree_size(sc->files);
+#endif
sce = stat_cache_entry_init();
buffer_copy_string_buffer(sce->name, name);