From 0f58495e0ddd15e8fc32ad4dbea403005e2575fb Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 9 Jan 2016 01:26:59 +0100 Subject: [PATCH] [cache] Prevent log errors if cache disabled --- src/cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cache.c b/src/cache.c index 1fe5b2c1..f1cfc787 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1679,7 +1679,11 @@ cache_artwork_get(int type, int64_t persistentid, int max_w, int max_h, int *cac int ret; if (!g_initialized) - return -1; + { + *cached = 0; + *format = 0; + return 0; + } command_init(&cmd);