imagecache: fix the url variable initialization for error path (coverity)

This commit is contained in:
Jaroslav Kysela 2014-10-03 14:49:01 +02:00
parent 7fc28acf56
commit 7c2a37a6a1

View file

@ -147,6 +147,8 @@ imagecache_image_fetch ( imagecache_image_t *img )
if (img->url == NULL || img->url[0] == '\0')
return res;
memset(&url, 0, sizeof(url));
/* Open file */
if (hts_settings_buildpath(path, sizeof(path), "imagecache/data/%d",
img->id))