updateiconcache: Static analysis fixes

This commit is contained in:
Matthias Clasen 2021-05-03 07:36:34 -04:00
parent 5fbfe5203c
commit fa10264759

View File

@ -1007,8 +1007,7 @@ get_image_meta_data_size (Image *image)
for (i = 0; data->display_names[i]; i++) for (i = 0; data->display_names[i]; i++)
{ {
int poolv; if (find_string (data->display_names[i]) == 0)
if ((poolv = find_string (data->display_names[i])) == 0)
{ {
data->size += ALIGN_VALUE (strlen (data->display_names[i]) + 1, 4); data->size += ALIGN_VALUE (strlen (data->display_names[i]) + 1, 4);
/* Adding the string to the pool with -1 /* Adding the string to the pool with -1