imagecache: fix the url variable initialization for error path (coverity)
This commit is contained in:
parent
7fc28acf56
commit
7c2a37a6a1
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue