summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-save-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2014-04-16 23:05:38 +0000
committernicm <nicm@openbsd.org>2014-04-16 23:05:38 +0000
commit97bb737e7a5183b78765d7456a0e370d876bf7a3 (patch)
tree613fe84c5017b18fdd9d83a0a3904478e0908cb2 /usr.bin/tmux/cmd-save-buffer.c
parentAdd ufs2 support and get one step closer to making ffs2 bootable. This work was done by Pedro Martelletto for bitrig. One small tweak to make it buildable with -Werror. "Please commit" miod@ (diff)
downloadwireguard-openbsd-97bb737e7a5183b78765d7456a0e370d876bf7a3.tar.xz
wireguard-openbsd-97bb737e7a5183b78765d7456a0e370d876bf7a3.zip
Memory leak in error path and unnecessary assignment, from clang.
Diffstat (limited to 'usr.bin/tmux/cmd-save-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-save-buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-save-buffer.c b/usr.bin/tmux/cmd-save-buffer.c
index 20755780b34..1e9b11825a2 100644
--- a/usr.bin/tmux/cmd-save-buffer.c
+++ b/usr.bin/tmux/cmd-save-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-save-buffer.c,v 1.22 2014/04/07 10:32:16 nicm Exp $ */
+/* $OpenBSD: cmd-save-buffer.c,v 1.23 2014/04/16 23:05:38 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -142,7 +142,6 @@ do_print:
return (CMD_RETURN_ERROR);
}
msg = NULL;
- msglen = 0;
used = 0;
while (used != pb->size) {