Replace calls to strbuf_init(&foo, 0) with STRBUF_INIT initializer
commitf285a2d7ed6548666989406de8f0e7233eb84368
authorBrandon Casey <casey@nrlssc.navy.mil>
Thu, 9 Oct 2008 19:12:12 +0000 (9 14:12 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 12 Oct 2008 19:36:19 +0000 (12 12:36 -0700)
tree2e422bd9ceeeb432ca03b61f91165790f0e37146
parent7e7abea96b8140c592a46293f5e33aae0683c7ac
Replace calls to strbuf_init(&foo, 0) with STRBUF_INIT initializer

Many call sites use strbuf_init(&foo, 0) to initialize local
strbuf variable "foo" which has not been accessed since its
declaration. These can be replaced with a static initialization
using the STRBUF_INIT macro which is just as readable, saves a
function call, and takes up fewer lines.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
46 files changed:
archive-tar.c
archive.c
builtin-apply.c
builtin-blame.c
builtin-branch.c
builtin-cat-file.c
builtin-checkout-index.c
builtin-checkout.c
builtin-clean.c
builtin-clone.c
builtin-commit.c
builtin-fetch--tool.c
builtin-fmt-merge-msg.c
builtin-help.c
builtin-log.c
builtin-merge.c
builtin-remote.c
builtin-rev-list.c
builtin-rev-parse.c
builtin-show-branch.c
builtin-stripspace.c
builtin-tag.c
builtin-update-index.c
combine-diff.c
config.c
convert.c
diff.c
editor.c
exec_cmd.c
fsck.c
git.c
graph.c
hash-object.c
imap-send.c
log-tree.c
merge-recursive.c
mktag.c
mktree.c
pretty.c
read-cache.c
remote.c
rerere.c
sha1_file.c
walker.c
ws.c
wt-status.c