diff options
author | okan <okan> | 2012-07-08 01:00:24 +0000 |
---|---|---|
committer | okan <okan> | 2012-07-08 01:00:24 +0000 |
commit | c8a17ef5364a1ed43e709da40f1f4715e2852e3c (patch) | |
tree | 8b852e2e4918ab16180113106a3638d01dabb9c0 | |
parent | cb893d0aa96e0a3e86cbd1094206871b10d92cd0 (diff) | |
download | cwm-c8a17ef5364a1ed43e709da40f1f4715e2852e3c.tar.gz cwm-c8a17ef5364a1ed43e709da40f1f4715e2852e3c.tar.xz cwm-c8a17ef5364a1ed43e709da40f1f4715e2852e3c.zip |
remove a redundant assignment and another one up.
-rw-r--r-- | group.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/group.c b/group.c index 71ea3d0..f28640c 100644 --- a/group.c +++ b/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); |