Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
imagecache: fix the url variable initialization for error path (cover…
…ity)
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 7fc28ac commit 7c2a37a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/imagecache.c
Expand Up @@ -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))
Expand Down

0 comments on commit 7c2a37a

Please sign in to comment.