diff options
author | Vincent Carluer <vince@bitfu.io> | 2018-01-04 12:27:37 +0000 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-01-04 18:14:41 +0100 |
commit | 84a1bc5d0d6b54eb23268e8f02a787be9ccbd919 (patch) | |
tree | 44fb195236b76a31ef11f8b1d0094fba7a54a2fa | |
parent | f0a5b75d6a0d2a62da45e9f65d92ea4a6a2d5831 (diff) |
Instantiate j var outside #ifdef XINEMARA directive because it is used in loop outside directive
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -541,7 +541,7 @@ run(void) | |||
541 | static void | 541 | static void |
542 | setup(void) | 542 | setup(void) |
543 | { | 543 | { |
544 | int x, y, i = 0; | 544 | int x, y, i, j = 0; |
545 | unsigned int du; | 545 | unsigned int du; |
546 | XSetWindowAttributes swa; | 546 | XSetWindowAttributes swa; |
547 | XIM xim; | 547 | XIM xim; |
@@ -551,9 +551,8 @@ setup(void) | |||
551 | #ifdef XINERAMA | 551 | #ifdef XINERAMA |
552 | XineramaScreenInfo *info; | 552 | XineramaScreenInfo *info; |
553 | Window pw; | 553 | Window pw; |
554 | int a, j, di, n, area = 0; | 554 | int a, di, n, area = 0; |
555 | #endif | 555 | #endif |
556 | |||
557 | /* init appearance */ | 556 | /* init appearance */ |
558 | for (j = 0; j < SchemeLast; j++) | 557 | for (j = 0; j < SchemeLast; j++) |
559 | scheme[j] = drw_scm_create(drw, colors[j], 2); | 558 | scheme[j] = drw_scm_create(drw, colors[j], 2); |