* Fix some issues reported by cppcheck.
This commit is contained in:
10
albumart.c
10
albumart.c
@ -44,10 +44,10 @@ art_cache_exists(const char * orig_path, char ** cache_file)
|
||||
}
|
||||
|
||||
char *
|
||||
save_resized_album_art(image * imsrc, const char * path)
|
||||
save_resized_album_art(image_s * imsrc, const char * path)
|
||||
{
|
||||
int dstw, dsth;
|
||||
image * imdst;
|
||||
image_s * imdst;
|
||||
char * cache_file;
|
||||
char * cache_dir;
|
||||
|
||||
@ -174,8 +174,7 @@ check_embedded_art(const char * path, const char * image_data, int image_size)
|
||||
char * art_path = NULL;
|
||||
char * cache_dir;
|
||||
FILE * dstfile;
|
||||
image * imsrc;
|
||||
size_t nwritten;
|
||||
image_s * imsrc;
|
||||
static char last_path[PATH_MAX];
|
||||
static unsigned int last_hash = 0;
|
||||
static int last_success = 0;
|
||||
@ -229,6 +228,7 @@ check_embedded_art(const char * path, const char * image_data, int image_size)
|
||||
}
|
||||
else if( width > 0 && height > 0 )
|
||||
{
|
||||
size_t nwritten;
|
||||
if( art_cache_exists(path, &art_path) )
|
||||
goto end_art;
|
||||
cache_dir = strdup(art_path);
|
||||
@ -272,7 +272,7 @@ check_for_album_file(char * dir, const char * path)
|
||||
{
|
||||
char * file = malloc(PATH_MAX);
|
||||
struct album_art_name_s * album_art_name;
|
||||
image * imsrc = NULL;
|
||||
image_s * imsrc = NULL;
|
||||
int width=0, height=0;
|
||||
char * art_file;
|
||||
|
||||
|
Reference in New Issue
Block a user