aboutsummaryrefslogtreecommitdiff
path: root/src/site.c
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-08 23:29:08 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-08 23:29:08 +0300
commitabbee959bf5c87a8b2ad0b2d55d9ddb955147892 (patch)
treed1d9f09c7a650499c282d4642faa06ac171abd29 /src/site.c
parentaf5ac2e6df9c3a9c0c7c5bd35125b81a69b68069 (diff)
downloadrevela-abbee959bf5c87a8b2ad0b2d55d9ddb955147892.tar.gz
revela-abbee959bf5c87a8b2ad0b2d55d9ddb955147892.zip
Minor fixes here and there
* Added year variable to album template * Fixed a minor leak and dangling pointer * Other small improvements
Diffstat (limited to 'src/site.c')
-rw-r--r--src/site.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/site.c b/src/site.c
index 1acdc7c..e96c52c 100644
--- a/src/site.c
+++ b/src/site.c
@@ -181,6 +181,7 @@ traverse(struct site *site, const char *path, struct stat *dstat)
}
if (album->images->root != NULL) {
+ album_set_year(album);
bstree_add(site->albums, album);
closedir(dir);
return true;