]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
imagecache: fix build when ENABLE_IMAGECACHE is unset, fixes #3119
authorJaroslav Kysela <perex@perex.cz>
Sun, 27 Sep 2015 20:11:08 +0000 (22:11 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 27 Sep 2015 20:11:08 +0000 (22:11 +0200)
src/imagecache.c

index fbec71f8045baa7eef4604200946a9069723e267..135b2d932efeb44d6b97c9069c4525db4de957c0 100644 (file)
@@ -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);