summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-04 20:35:19 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-04 20:35:19 +0000
commitf575e39b0a367ae9b8a7cf54ceead865b8885eed (patch)
tree2bd071124315876ed178b019d59d8363fe8ae12b
parent10f58cb1bc0ec010cc692f504d52adcb6312b8fb (diff)
Unused (but assigned to) variable, found by lint.
-rw-r--r--status.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/status.c b/status.c
index 643c30c6..21ca31a2 100644
--- a/status.c
+++ b/status.c
@@ -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;