summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-04 20:35:20 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-04 20:35:20 +0000
commite50bf28f99a17da4b270d84d66bd20c7e271f67b (patch)
tree5dfdc05b56505baa53f3c8ae2262c227ff917b9c /usr.bin
parent977663b99170667667569e24c3cc3c783721c5d2 (diff)
Unused (but assigned to) variable, found by lint.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/status.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 4fb8de43416..6c5220c36a1 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.39 2009/11/01 23:20:37 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.40 2009/11/04 20:35:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -440,7 +440,7 @@ char *
status_job(struct client *c, char **iptr)
{
struct job *job;
- char *buf, *cmd;
+ char *cmd;
int lastesc;
size_t len;
@@ -451,8 +451,6 @@ status_job(struct client *c, char **iptr)
return (NULL);
}
- buf = NULL;
-
cmd = xmalloc(strlen(*iptr) + 1);
len = 0;