From d98d0940c0c6d1167ef8990d455946f55192ba0a Mon Sep 17 00:00:00 2001 From: Mike Small Date: Sat, 7 Nov 2020 14:44:29 -0500 Subject: [PATCH] narrow scope of variable x --- src/icons.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/icons.cc b/src/icons.cc index 274472c..a598376 100644 --- a/src/icons.cc +++ b/src/icons.cc @@ -146,7 +146,6 @@ CreateIconWindow(TwmWindow* win, int def_x, int def_y) unsigned long valuemask; /* mask for create windows */ XSetWindowAttributes attributes; /* attributes for create windows */ Pixmap pm = None; /* tmp pixmap variable */ - int x; FB(win->iconc.fore, win->iconc.back); @@ -337,7 +336,7 @@ CreateIconWindow(TwmWindow* win, int def_x, int def_y) if (pm != None && (! (win->wmhints && win->wmhints->flags & IconWindowHint))) { - int y; + int x, y; y = 0; if (win->icon_w_width == win->icon_width)