]> gitweb.ps.run Git - ps-cgit/blobdiff - cache.c
ui-snapshot: set unused cgit_filter fields to zero
[ps-cgit] / cache.c
diff --git a/cache.c b/cache.c
index aa870e3654125cf6017d5f7d6d0f21da8a549a0e..fa83ddc33c15d71e6e6372bd6713bbfd9c4ecaa6 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -1,6 +1,6 @@
 /* cache.c: cache management
  *
- * Copyright (C) 2006 Lars Hjemli
+ * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
  *
  * Licensed under GNU General Public License v2
  *   (see COPYING for full license text)
@@ -376,7 +376,7 @@ int cache_ls(const char *path)
        DIR *dir;
        struct dirent *ent;
        int err = 0;
-       struct cache_slot slot;
+       struct cache_slot slot = { 0 };
        struct strbuf fullname = STRBUF_INIT;
        size_t prefixlen;