]> git.armaanb.net Git - dmenu.git/commitdiff
Instantiate j var outside #ifdef XINEMARA directive because it is used in loop outsid...
authorVincent Carluer <vince@bitfu.io>
Thu, 4 Jan 2018 12:27:37 +0000 (12:27 +0000)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Thu, 4 Jan 2018 17:14:41 +0000 (18:14 +0100)
dmenu.c

diff --git a/dmenu.c b/dmenu.c
index eae56850e37d6cf78b570a46b1f5abe57e3df563..3c261c0b0a8131680e0e8bde1b022ee108cf0d0a 100644 (file)
--- a/dmenu.c
+++ b/dmenu.c
@@ -541,7 +541,7 @@ run(void)
 static void
 setup(void)
 {
-       int x, y, i = 0;
+       int x, y, i, j = 0;
        unsigned int du;
        XSetWindowAttributes swa;
        XIM xim;
@@ -551,9 +551,8 @@ setup(void)
 #ifdef XINERAMA
        XineramaScreenInfo *info;
        Window pw;
-       int a, j, di, n, area = 0;
+       int a, di, n, area = 0;
 #endif
-
        /* init appearance */
        for (j = 0; j < SchemeLast; j++)
                scheme[j] = drw_scm_create(drw, colors[j], 2);