aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2012-07-08 01:00:24 +0000
committerokan2012-07-08 01:00:24 +0000
commit0b4988835551324c8c28bc9f9839663467948f4c (patch)
tree968d91d1fae0af22733f4d9a3e7d4498ccd47e44 /group.c
parent63bf350855eb2035f8b2451457f93e86b0b7735d (diff)
downloadcwm-0b4988835551324c8c28bc9f9839663467948f4c.tar.gz
remove a redundant assignment and another one up.
Diffstat (limited to 'group.c')
-rw-r--r--group.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/group.c b/group.c
index 0119cd2..85af7a1 100644
--- a/group.c
+++ b/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 <sys/param.h>
@@ -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);