From: Jaroslav Kysela Date: Sun, 27 Sep 2015 20:11:08 +0000 (+0200) Subject: imagecache: fix build when ENABLE_IMAGECACHE is unset, fixes #3119 X-Git-Tag: v4.2.1~2039 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cac5ce3d997a8af388b03544502db6366c2e3f47;p=thirdparty%2Ftvheadend.git imagecache: fix build when ENABLE_IMAGECACHE is unset, fixes #3119 --- diff --git a/src/imagecache.c b/src/imagecache.c index fbec71f80..135b2d932 100644 --- a/src/imagecache.c +++ b/src/imagecache.c @@ -581,9 +581,9 @@ imagecache_get_id ( const char *url ) if (!i) { i = imagecache_skel; i->url = strdup(url); - imagecache_new_id(i); SKEL_USED(imagecache_skel); #if ENABLE_IMAGECACHE + imagecache_new_id(i); imagecache_image_add(i); #endif imagecache_image_save(i);