aboutsummaryrefslogtreecommitdiff
path: root/src/site.c
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-03-31 02:06:41 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-03-31 02:06:41 +0300
commit3c7230c191ade30d5b9c8ef02a019ba42ab519f5 (patch)
tree7e85927e11ae604020c547cfe62c3aaa18cfe6f8 /src/site.c
parentc251b0d5a905f19498e1d3312041b794e57fd2f8 (diff)
downloadrevela-aca230c6759c33391d87f5549e3789b5a3a3d333.tar.gz
revela-aca230c6759c33391d87f5549e3789b5a3a3d333.zip
Ready for packagingv0.1.0
* Documentation * make install/uninstall * roscha truthy fix * Other fixes/improvements
Diffstat (limited to 'src/site.c')
-rw-r--r--src/site.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/site.c b/src/site.c
index 4c87c9d..f26907e 100644
--- a/src/site.c
+++ b/src/site.c
@@ -86,10 +86,6 @@ optimize_image(MagickWand *wand, const char *dst,
const struct image_config *conf,
const struct timespec *srcmtim, bool dry)
{
- int update = file_is_uptodate(dst, srcmtim);
- if (update == -1) return false;
- if (update == 1) return true;
-
log_printl(LOG_DETAIL, "Converting %s", dst);
if (dry) goto out;
@@ -413,6 +409,7 @@ site_deinit(struct site *site)
site_config_destroy(site->config);
free(site->content_dir);
free(site->root_dir);
+ free(site->output_dir);
if (site->wand != NULL) {
DestroyMagickWand(site->wand);
DestroyMagick();