[hackers] [dmenu] Instantiate j var outside #ifdef XINEMARA directive because it is used in loop outside directive || Vincent Carluer
commit 84a1bc5d0d6b54eb23268e8f02a787be9ccbd919
Author: Vincent Carluer <vince_AT_bitfu.io>
AuthorDate: Thu Jan 4 12:27:37 2018 +0000
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Thu Jan 4 18:14:41 2018 +0100
Instantiate j var outside #ifdef XINEMARA directive because it is used in loop outside directive
diff --git a/dmenu.c b/dmenu.c
index eae5685..3c261c0 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -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;
_AT_@ -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);
Received on Thu Jan 04 2018 - 18:16:45 CET
This archive was generated by hypermail 2.3.0
: Thu Jan 04 2018 - 18:24:26 CET