mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
remove a redundant assignment and another one up.
This commit is contained in:
parent
cb893d0aa9
commit
c8a17ef536
3
group.c
3
group.c
@ -459,7 +459,7 @@ group_update_names(struct screen_ctx *sc)
|
||||
char **strings, *p;
|
||||
unsigned char *prop_ret;
|
||||
Atom type_ret;
|
||||
int format_ret, i = 0, nstrings = 0, n, setnames = 0;
|
||||
int format_ret, i = 0, nstrings = 0, n = 0, setnames = 0;
|
||||
unsigned long bytes_after, num_ret;
|
||||
|
||||
if (XGetWindowProperty(X_Dpy, sc->rootwin,
|
||||
@ -478,7 +478,6 @@ group_update_names(struct screen_ctx *sc)
|
||||
strings = xmalloc((nstrings < CALMWM_NGROUPS ? CALMWM_NGROUPS :
|
||||
nstrings) * sizeof(*strings));
|
||||
|
||||
i = n = 0;
|
||||
p = prop_ret;
|
||||
while (n < nstrings) {
|
||||
strings[n++] = xstrdup(p);
|
||||
|
Loading…
Reference in New Issue
Block a user