[gtk/static-analysis-fixes: 13/13] updateiconcache: Static analysis fixes




commit fa102647598758a90ba78e22b3d13eb9ad584135
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 3 07:36:34 2021 -0400

    updateiconcache: Static analysis fixes

 tools/updateiconcache.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/tools/updateiconcache.c b/tools/updateiconcache.c
index 49732156f6..1618a6e40a 100644
--- a/tools/updateiconcache.c
+++ b/tools/updateiconcache.c
@@ -1007,8 +1007,7 @@ get_image_meta_data_size (Image *image)
 
               for (i = 0; data->display_names[i]; i++)
                 {
-                  int poolv;
-                  if ((poolv = find_string (data->display_names[i])) == 0)
+                  if (find_string (data->display_names[i]) == 0)
                     {
                       data->size += ALIGN_VALUE (strlen (data->display_names[i]) + 1, 4);
                       /* Adding the string to the pool with -1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]