From 0e2204bc268193ce0408d89a897c9d9c62afe817 Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Sun, 8 Jul 2012 01:00:25 +0000 Subject: remove a redundant assignment and another one up. --- app/cwm/group.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/cwm') diff --git a/app/cwm/group.c b/app/cwm/group.c index 0119cd235..85af7a1f9 100644 --- a/app/cwm/group.c +++ b/app/cwm/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: group.c,v 1.58 2012/07/03 13:49:03 okan Exp $ + * $OpenBSD: group.c,v 1.59 2012/07/08 01:00:24 okan Exp $ */ #include @@ -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); -- cgit v1.2.3