aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-icon-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-icon-factory.c')
-rw-r--r--e-util/e-icon-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/e-util/e-icon-factory.c b/e-util/e-icon-factory.c
index 6ed841b98e..2a5cfb35f5 100644
--- a/e-util/e-icon-factory.c
+++ b/e-util/e-icon-factory.c
@@ -98,7 +98,7 @@ load_icon (const char *icon_key, const char *icon_name, int size, int scale)
if (!filename || !(unscaled = gdk_pixbuf_new_from_file (filename, NULL))) {
if (scale) {
const char *dent;
- int width, height;
+ int width;
GDir *dir;
char *x;
@@ -114,7 +114,7 @@ load_icon (const char *icon_key, const char *icon_name, int size, int scale)
if (((width = strtol (dent, &x, 10)) < size) || *x != 'x')
continue;
- if (((height = strtol (x + 1, &x, 10)) != width) || *x != '\0')
+ if (((strtol (x + 1, &x, 10)) != width) || *x != '\0')
continue;
/* if the icon exists in this directory, we can [use/scale] it */