diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-04-16 23:05:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-04-16 23:05:39 +0000 |
commit | 65fd6d135d5458061b5259f68b3ef4566ce7e70e (patch) | |
tree | 905a501fcc789dc5980fb16f97e1e254ae03ca6c /usr.bin/tmux/cmd-save-buffer.c | |
parent | 5ed0047f4dbc202effb39cae70bba7248e37e573 (diff) |
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.c | 3 |
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) { |