Browse Source

Instantiate j var outside #ifdef XINEMARA directive because it is used in loop outside directive

master
Vincent Carluer 6 years ago
committed by Hiltjo Posthuma
parent
commit
84a1bc5d0d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      dmenu.c

+ 2
- 3
dmenu.c View File

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


Loading…
Cancel
Save