summaryrefslogtreecommitdiffstats
path: root/cmd-save-buffer.c
diff options
context:
space:
mode:
authornicm <nicm>2014-04-16 23:05:38 +0000
committernicm <nicm>2014-04-16 23:05:38 +0000
commit5acee1c04ed38afd6a32da4a66e6855ccdc52af3 (patch)
treefe2891f503a86f532eba2318dd598dc3580b8208 /cmd-save-buffer.c
parent871b83cbab3a490827760540f2c36fd1edfe1875 (diff)
Memory leak in error path and unnecessary assignment, from clang.
Diffstat (limited to 'cmd-save-buffer.c')
-rw-r--r--cmd-save-buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c
index 6c15fb42..b6ee2e49 100644
--- a/cmd-save-buffer.c
+++ b/cmd-save-buffer.c
@@ -142,7 +142,6 @@ do_print:
return (CMD_RETURN_ERROR);
}
msg = NULL;
- msglen = 0;
used = 0;
while (used != pb->size) {